Any++
Loading...
Searching...
No Matches
anyxx::using_< Value > Struct Template Reference

#include <anyxx.hpp>

Public Types

using value_t = Value
template<typename Trait>
using as = any<using_<Value>, Trait>

Public Member Functions

template<typename V>
 using_ (V &&v)
 operator Value () const

Public Attributes

Value value_

Detailed Description

template<typename Value>
struct anyxx::using_< Value >

Proxy to capture the dispatch target concrete to enable static dispatch A simple wrapper class over an object. Use '&' and 'const &' to capture by reference.

Usage:

Template Parameters
ValueThe captured value
Examples
_2c_trait_any_variant.cpp.

Member Typedef Documentation

◆ as

template<typename Value>
template<typename Trait>
using anyxx::using_< Value >::as = any<using_<Value>, Trait>

Helper type alias template to trait a model with an any. See also trait_as.

Examples
_3_any_range.cpp.

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