rsl  1.1.0
ROS Support Library
rsl::StrongType< T, Tag > Class Template Reference

Class template for creating strong type aliases. More...

#include <strong_type.hpp>

Public Member Functions

constexpr StrongType (T value)
 Construct from any type.
 
constexpr T & get ()
 Get non-const reference to underlying value.
 
constexpr const T & get () const
 Get const reference to underlying value.
 
constexpr operator T () const
 Explicit conversion to underlying type.
 

Detailed Description

template<typename T, typename Tag>
class rsl::StrongType< T, Tag >

Class template for creating strong type aliases.

Template Parameters
Tvalue type
TagTag type to disambiguate separate type aliases

The documentation for this class was generated from the following file: