xtd
0.2.0
Loading...
Searching...
No Matches
◆
as< double >()
[1/42]
template<>
double
xtd::as
< double >
(
std::any
value
)
inline
Casts a type into another type.
Parameters
value
object to convert.
Returns
A new double object converted from value.
Exceptions
xtd::invalid_cast_exception
the parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value =
true
;
double
result =
as<double>
(value);
xtd::as< double >
double as< double >(std::any value)
Casts a type into another type.
Definition
__as_double.h:36
xtd
Generated on Wed Sep 11 2024 22:08:08 for xtd by
Gammasoft
. All rights reserved.