BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslmf::SelectTraitCase< t_TRAIT > Struct Template Reference

#include <bslmf_selecttrait.h>

Classes

struct  Eval
 

Public Types

typedef SelectTraitCase Type
 

Detailed Description

template<template< class > class t_TRAIT = SelectTrait_False>
struct bslmf::SelectTraitCase< t_TRAIT >

This template expresses a class that is unique for the specified (template parameter) t_TRAIT metafunction. An instantiation of this template is the "compile-time return value" of SelectTrait (see below). SelectTraitCase acts as a sort of compile-time pointer-to-metafunction that holds the identity of a metafunction similar to the way a pointer-to-function holds (at run-time) the identity of a function. As in the pointer-to-function case, a SelectTraitCase can also be used indirectly to evaluate t_TRAIT (at compile time). Also note that, when SelectTraitCase is specialized with the default t_TRAIT type parameter, SelectTrait_False, it essentially means that none of the traits specified to SelectTrait match.

Member Typedef Documentation

◆ Type

template<template< class > class t_TRAIT = SelectTrait_False>
typedef SelectTraitCase bslmf::SelectTraitCase< t_TRAIT >::Type

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