FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
template<typename T >
template< typename T > bool FB::variant::is_of_type ( ) const
inline

Query if this object is of a particular type.

Example:

if (value.is_of_type<int>())
{
// Do something
}
Returns
true if of type, false if not.

Definition at line 355 of file variant.h.

References get_type().

Referenced by FB::JSAPIAuto::FireJSEvent().

355  {
356  return (get_type() == typeid(T));
357  }
const std::type_info & get_type() const
Gets the type of the value stored in variant.
Definition: variant.h:307

Here is the call graph for this function: