qb  2.0.0.0
C++17 Actor Framework
qb Issue Watch Star Fork Follow @isndev
Loading...
Searching...
No Matches
qb::remove_reference_if< T, cond > Struct Template Reference

Conditionally removes a reference from type T if cond is true. More...

#include <type_traits.h>

Public Types

typedef T type
 Resulting type (unchanged if condition is false)

Static Public Attributes

static constexpr bool value = false
 Whether reference was removed.

Detailed Description

template<typename T, bool cond>
struct qb::remove_reference_if< T, cond >

Conditionally removes a reference from type T if cond is true.

Template Parameters
TThe type to process.
condA boolean condition. If true, std::remove_reference<T>::type is used.
Returns
type is T if cond is false, or std::remove_reference_t<T> if cond is true. value indicates if the reference was actually removed.