BloombergLP::bslmf::MetaInt<0>

This specialization of MetaInt has a VAL of zero and is convertible to and from bsl::false_type.

Synopsis

Declared in <bslmf_metaint.h>

template<>
struct MetaInt<0>
    : bsl::false_type

Base Classes

NameDescription
bsl::false_typeMetafunction representing the boolean constant false.

Type Aliases

Name
Tag
Type

Enums

Name
Unnamed enum

Member Functions

NameDescription
MetaInt [constructor]Does nothing (MetaInt is stateless).
MetaInt [constructor]Convert from a bsl::false_type.
operator bool Return false. (This operator is conversion operator to bool.)

Static Member Functions

NameDescription
tag Declared but not defined. Meta-function use only. The tag can be used to recover meta-information from an expression. Example: sizeof(f(expr).tag()) returns a different compile-time value depending on the type of the result of calling the f function but does not actually call the f function or the tag method at run-time. Note that f(expr)::VALUE or sizeof(f(expr)::Type) would be ill-formed and that f(expr).value is not a compile-time expression.