xtd
0.2.0
Loading...
Searching...
No Matches
◆
as()
[50/52]
template<typename new_type_t , typename current_type_t >
xtd::sptr
< new_type_t > xtd::as
(
const
xtd::sptr
< current_type_t > &
value
)
Casts a type into another type.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const
xtd::sptr<button>
value = xtd::new_sptr<xtd::forms::button>();
const
xtd::sptr<control>
result = as<xtd::forms::control>(value);
xtd::sptr
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition
sptr.h:25
Exceptions
xtd::invalid_cast_exception
the parameters is bad cast.
xtd
Generated on Sat Sep 14 2024 21:25:16 for xtd by
Gammasoft
. All rights reserved.