proxygen
folly::ExpectingDeleter Struct Reference

Public Member Functions

 ExpectingDeleter (int expected_)
 
void operator() (const int *ptr)
 
 ExpectingDeleter (int expected_)
 
void operator() (const int *ptr)
 

Public Attributes

int expected
 

Detailed Description

Definition at line 189 of file ExpectedTest.cpp.

Constructor & Destructor Documentation

folly::ExpectingDeleter::ExpectingDeleter ( int  expected_)
inlineexplicit

Definition at line 190 of file ExpectedTest.cpp.

190 : expected(expected_) {}
folly::ExpectingDeleter::ExpectingDeleter ( int  expected_)
inlineexplicit

Definition at line 203 of file OptionalTest.cpp.

203 : expected(expected_) {}

Member Function Documentation

void folly::ExpectingDeleter::operator() ( const int *  ptr)
inline

Definition at line 192 of file ExpectedTest.cpp.

References EXPECT_EQ, and ptr.

192  {
194  delete ptr;
195  }
void * ptr
#define EXPECT_EQ(val1, val2)
Definition: gtest.h:1922
void folly::ExpectingDeleter::operator() ( const int *  ptr)
inline

Definition at line 205 of file OptionalTest.cpp.

References EXPECT_EQ, and ptr.

205  {
207  delete ptr;
208  }
void * ptr
#define EXPECT_EQ(val1, val2)
Definition: gtest.h:1922

Member Data Documentation

int folly::ExpectingDeleter::expected

Definition at line 191 of file ExpectedTest.cpp.


The documentation for this struct was generated from the following files: