irccd  3.0.3
irccd::js::duk::type_traits< T > Struct Template Reference

Operations on different types. More...

#include <duk.hpp>

Detailed Description

template<typename T>
struct irccd::js::duk::type_traits< T >

Operations on different types.

This class provides some functions for the given type, depending on the nature of the function.

For example, push will call type_traits<T>::push static function if the type_traits is implemented for that given T type.

This helps passing/getting function between Javascript and C++ code.

Example:

push(ctx, 123); // Uses type_traits<int>
push(ctx, true); // Uses type_traits<bool>

This class is specialized for the following types:

Regarding exceptions, this class is specialized for the following types:

See also
push
get
require
raise

The documentation for this struct was generated from the following file:
irccd::js::duk::push
auto push(duk_context *ctx, T &&value) -> int
Definition: duk.hpp:270