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;
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;
Return Value
-
true if
tcompares equal to nullptr -
false always
Parameters
Name |
Description |
t |
the value to test |
value |
the value to test |
Created with MrDocs