RPNX::DataStructures
Header-only C++ data structures and supporting utilities.
Loading...
Searching...
No Matches
rpnx::variant_convert_to< A, Ts > Class Template Reference

Visitor that assigns its argument into a target variant. More...

#include <variant.hpp>

Public Member Functions

 variant_convert_to (basic_variant< A, Ts... > &val)
 Binds the assignment target.
 
template<typename T2>
bool operator() (T2 &&other) const
 Assigns a visited value into the target.
 

Detailed Description

template<typename A, typename... Ts>
class rpnx::variant_convert_to< A, Ts >

Visitor that assigns its argument into a target variant.

Template Parameters
ATarget allocator type.
TsTarget alternative types.

Constructor & Destructor Documentation

◆ variant_convert_to()

template<typename A, typename... Ts>
rpnx::variant_convert_to< A, Ts >::variant_convert_to ( basic_variant< A, Ts... > & val)
inline

Binds the assignment target.

Parameters
valVariant updated by visitor calls.

Member Function Documentation

◆ operator()()

template<typename A, typename... Ts>
template<typename T2>
bool rpnx::variant_convert_to< A, Ts >::operator() ( T2 && other) const
inline

Assigns a visited value into the target.

Template Parameters
T2Visited value type.
Parameters
otherValue to forward.
Returns
Always true.

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