Template Struct add_const_conditionally

Struct Documentation

template<typename T, typename C>
struct add_const_conditionally

Conditionally add const to type T if C has the const qualifier.

Template Parameters:
  • T – is the type to conditionally add the const qualifier

  • Condition – is the type which determines if the const qualifier needs to be added to T

Public Types

using type = T