folly::match_empty_function_protocol

match_empty_function_protocol overloads

Synopses

Declared in <folly/functional/protocol.h>

Tests a value comparable to nullptr against the empty-function protocol.

template<typename T>
requires cx_matches_v<T>
constexpr
bool
match_empty_function_protocol(T const& t) noexcept;
» more...

Tests a value that cannot be compared to nullptr; never matches.

template<typename T>
requires !cx_matches_v<T>
constexpr
bool
match_empty_function_protocol(T const& value) noexcept;
» more...

Return Value

  • true if t compares equal to nullptr
  • false always

Parameters

NameDescription
tthe value to test
valuethe value to test