scnlib  0.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
scn::temporary< T > Struct Template Reference

Allows reading an rvalue. More...

#include <args.h>

Public Member Functions

 temporary (T &&val)
T & operator() ()&&noexcept

Public Attributes


Detailed Description

template<typename T>
struct scn::temporary< T >

Allows reading an rvalue.

Stores an rvalue and returns an lvalue reference to it via operator(). Create one with Scanning temporaries.

Definition at line 45 of file args.h.

Constructor & Destructor Documentation

template<typename T >
scn::temporary< T >::temporary ( T &&  val)

Definition at line 46 of file args.h.

Member Function Documentation

template<typename T >
T& scn::temporary< T >::operator() ( )

Definition at line 48 of file args.h.

Member Data Documentation

template<typename T >
T scn::temporary< T >::value

Definition at line 53 of file args.h.

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