HikoGUI
Select Version:
⚠️ This documents the main development branch of HikoGUI. It might differ from release versions.
A low latency retained GUI
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
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: