|
Any++
|
#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_ |
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:
using_<std::variant<...>> to unify customization points and member function-like invocation.| Value | The captured value |
| using anyxx::using_< Value >::as = any<using_<Value>, Trait> |
Helper type alias template to trait a model with an any. See also trait_as.