boost::openmethod::IsVirtualAny
Test if argument is a wide any (exposition only)
Synopsis
Declared in <boost/openmethod/interop/virtual_any.hpp>
template<typename T>
constexpr bool IsVirtualAny = false;
Description
Evaluates to true if T is a specialization of virtual_any, and false otherwise.
This constrains the constructor and the assignment operator of virtual_any that take a value, excluding every specialization of the wide type, not only the one matching this virtual_any. A matching argument then selects the copy or move operation instead of being stored inside the any; any other specialization is rejected outright rather than stored: a virtual_any is not a registered class, so its registry::static_vptr would be null.
Template Parameters
Name |
Description |
T |
A type. |
Created with MrDocs