open62541pp 0.19.0
C++ wrapper of open62541
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
opcua::TypeHandler< T > Struct Template Reference

#include <wrapper.hpp>

Detailed Description

template<typename T>
struct opcua::TypeHandler< T >

Default type handler providing standard copy and move operations.

You can specialize it for custom types to override default behavior. For example:

template <>
struct TypeHandler<MyType> {
static constexpr MyType copy(const MyType& obj) { ... }
static constexpr MyType move(MyType&& obj) noexcept { ... }
static constexpr void clear(MyType& obj) noexcept { ... }
};
Default type handler providing standard copy and move operations.
Definition wrapper.hpp:52

Definition at line 52 of file wrapper.hpp.

Static Public Member Functions

static constexpr T copy (const T &object)
 
static constexpr T move (T &&object) noexcept
 

Member Function Documentation

◆ copy()

template<typename T >
static constexpr T opcua::TypeHandler< T >::copy ( const T &  object)
inlinestaticconstexpr

Definition at line 57 of file wrapper.hpp.

◆ move()

template<typename T >
static constexpr T opcua::TypeHandler< T >::move ( T &&  object)
inlinestaticconstexprnoexcept

Definition at line 61 of file wrapper.hpp.