HikoGUI
A low latency retained GUI
|
#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 |
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: