This specialization of MetaInt has a VAL of one and is convertible to and from bsl::true_type.

Synopsis

Declared in <bslmf_metaint.h>

template<>
struct MetaInt<1>
    : bsl::true_type

Base Classes

Name

Description

bsl::true_type

Metafunction representing the boolean constant true.

Type Aliases

Name

Description

Tag

Tag type encoding 1 for overload resolution.

Type

This specialization of MetaInt.

Enums

Name

Description

Unnamed enum

Compile‐time integer constants for this metafunction.

Member Functions

Name

Description

MetaInt [constructor]

Does nothing (MetaInt is stateless).

MetaInt [constructor]

Convert from a bsl::true_type.

operator bool

Return true. (This operator is conversion operator to bool.)

Static Member Functions

Name

Description

tag

Return a reference to a tag encoding this type's integral value.

Created with MrDocs