xtd 0.2.0
Loading...
Searching...
No Matches

◆ as() [47/52]

template<typename new_type_t , typename current_type_t >
new_type_t * xtd::as ( current_type_t *  value)

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
button* value = new xtd::forms::button();
control* result = as<xtd::forms::control>(value);
Represents a Windows button control.
Definition button.h:49
@ control
The left or right CTRL modifier key.