22
General utilities library
[utilities]
22.7
Storage for any type
[any]
22.7.4
Class
any
[any.class]
22.7.4.5
Observers
[any.observers]
🔗
bool
has_value
(
)
const
noexcept
;
1
#
Returns
:
true
if
*
this
contains an object, otherwise
false
.
🔗
const
type_info
&
type
(
)
const
noexcept
;
2
#
Returns
:
typeid
(
T
)
if
*
this
has a contained value of type
T
, otherwise
typeid
(
void
)
.
3
#
[
Note
1
:
Useful for querying against types known either at compile time or only at runtime
.
—
end note
]