Constructs a boolean from the argument.

Synopsis

Declared in <folly/Utility.h>

template<
    typename...,
    typename T>
constexpr
decltype(static_cast<bool>(t))
to_bool(T const& t) noexcept;
Note

This function is defined as an Algorithm Function Object (AFO).

Return Value

The value converted to bool.

Parameters

Name

Description

t

The value to convert.

Created with MrDocs