Common System 0.2.0
Common interfaces and patterns for system integration
Loading...
Searching...
No Matches
kcenon::common::adapters::adapter_traits< T > Struct Template Reference

Primary adapter_traits template for value types. More...

#include <adapter.h>

Collaboration diagram for kcenon::common::adapters::adapter_traits< T >:
Collaboration graph

Public Types

using value_type = T
 
using pointer_type = T*
 
using reference_type = T&
 
using const_reference_type = const T&
 

Static Public Attributes

static constexpr bool is_smart_pointer = false
 
static constexpr bool supports_weak = false
 

Detailed Description

template<typename T>
struct kcenon::common::adapters::adapter_traits< T >

Primary adapter_traits template for value types.

Template Parameters
TThe type being wrapped
Examples
adapter_pattern_example.cpp.

Definition at line 34 of file adapter.h.

Member Typedef Documentation

◆ const_reference_type

template<typename T >
using kcenon::common::adapters::adapter_traits< T >::const_reference_type = const T&

Definition at line 38 of file adapter.h.

◆ pointer_type

template<typename T >
using kcenon::common::adapters::adapter_traits< T >::pointer_type = T*

Definition at line 36 of file adapter.h.

◆ reference_type

template<typename T >
using kcenon::common::adapters::adapter_traits< T >::reference_type = T&

Definition at line 37 of file adapter.h.

◆ value_type

template<typename T >
using kcenon::common::adapters::adapter_traits< T >::value_type = T

Definition at line 35 of file adapter.h.

Member Data Documentation

◆ is_smart_pointer

template<typename T >
bool kcenon::common::adapters::adapter_traits< T >::is_smart_pointer = false
staticconstexpr

Definition at line 39 of file adapter.h.

◆ supports_weak

template<typename T >
bool kcenon::common::adapters::adapter_traits< T >::supports_weak = false
staticconstexpr

Definition at line 40 of file adapter.h.


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