proxygen
folly::gen::Negate< Predicate > Class Template Reference

#include <Base.h>

Public Member Functions

 Negate ()=default
 
 Negate (Predicate pred)
 
template<class Arg >
bool operator() (Arg &&arg) const
 

Private Attributes

Predicate pred_
 

Detailed Description

template<class Predicate>
class folly::gen::Negate< Predicate >

Class and helper function for negating a boolean Predicate

Definition at line 203 of file Base.h.

Constructor & Destructor Documentation

template<class Predicate >
folly::gen::Negate< Predicate >::Negate ( )
default
template<class Predicate >
folly::gen::Negate< Predicate >::Negate ( Predicate  pred)
inlineexplicit

Definition at line 209 of file Base.h.

209 : pred_(std::move(pred)) {}
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
Predicate pred_
Definition: Base.h:204

Member Function Documentation

template<class Predicate >
template<class Arg >
bool folly::gen::Negate< Predicate >::operator() ( Arg &&  arg) const
inline

Definition at line 212 of file Base.h.

212  {
213  return !pred_(std::forward<Arg>(arg));
214  }
Predicate pred_
Definition: Base.h:204

Member Data Documentation

template<class Predicate >
Predicate folly::gen::Negate< Predicate >::pred_
private

Definition at line 204 of file Base.h.


The documentation for this class was generated from the following file: