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

#include <ttauri/forward_value.hpp>

Public Types

using type = std::remove_cvref_t<T>
 

Public Member Functions

constexpr T && operator() (std::remove_reference_t< T > &t) const noexcept
 
constexpr T && operator() (std::remove_reference_t< T > &&t) const noexcept
 

Detailed Description

template<typename T>
struct tt::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: