HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Types | Public Member Functions
v1::forward_value< T > Struct Template Reference

#include <hikogui/utility/forward_value.hpp>

Public Types

using type = std::remove_cvref_t<T>
 

Public Member Functions

type operator() (T const &t) const noexcept
 

Detailed Description

template<typename T>
struct v1::forward_value< T >

Functor for forwarding an forwarding-reference to variable.

This functor is used to long-time-storage of values passed into a template function. This means that views need to be translated into non-view values.

For savety against the lifetime of the orginal object ending:

For performance a string literal which is stored in constant are taken by pointer:


The documentation for this struct was generated from the following file: