proxygen
fake_string_view Class Reference

Public Types

using size_type = std::size_t
 

Public Member Functions

 fake_string_view (char const *s, size_type c, tag={})
 
 operator StringPiece () const
 

Private Attributes

StringPiece piece_
 

Friends

bool operator== (char const *rhs, fake_string_view lhs)
 

Detailed Description

Definition at line 1436 of file RangeTest.cpp.

Member Typedef Documentation

using fake_string_view::size_type = std::size_t

Definition at line 1441 of file RangeTest.cpp.

Constructor & Destructor Documentation

fake_string_view::fake_string_view ( char const *  s,
size_type  c,
tag  = {} 
)
inlineexplicit

Definition at line 1442 of file RangeTest.cpp.

1442  {})
1443  : piece_(s, c) {}
StringPiece piece_
Definition: RangeTest.cpp:1438
static set< string > s
char c

Member Function Documentation

fake_string_view::operator StringPiece ( ) const
inline

Definition at line 1444 of file RangeTest.cpp.

1444  {
1445  return piece_;
1446  }
StringPiece piece_
Definition: RangeTest.cpp:1438

Friends And Related Function Documentation

bool operator== ( char const *  rhs,
fake_string_view  lhs 
)
friend

Definition at line 1447 of file RangeTest.cpp.

1447  {
1448  return rhs == lhs.piece_;
1449  }
StringPiece piece_
Definition: RangeTest.cpp:1438
FOLLY_PUSH_WARNING RHS rhs
Definition: Traits.h:649

Member Data Documentation

StringPiece fake_string_view::piece_
private

Definition at line 1438 of file RangeTest.cpp.


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