V8 Project
v8::internal::Vector< T >::RawComparer Class Reference
+ Collaboration diagram for v8::internal::Vector< T >::RawComparer:

Public Member Functions

 RawComparer (int(*cmp)(const T *, const T *))
 
bool operator() (const T &a, const T &b)
 

Private Attributes

int(* cmp_ )(const T *, const T *)
 

Detailed Description

template<typename T>
class v8::internal::Vector< T >::RawComparer

Definition at line 121 of file vector.h.

Constructor & Destructor Documentation

◆ RawComparer()

template<typename T >
v8::internal::Vector< T >::RawComparer::RawComparer ( int(*)(const T *, const T *)  cmp)
inlineexplicit

Definition at line 123 of file vector.h.

123 : cmp_(cmp) {}
int(* cmp_)(const T *, const T *)
Definition: vector.h:129

Member Function Documentation

◆ operator()()

template<typename T >
bool v8::internal::Vector< T >::RawComparer::operator() ( const T a,
const T b 
)
inline

Definition at line 124 of file vector.h.

124  {
125  return cmp_(&a, &b) < 0;
126  }

References v8::internal::Vector< T >::RawComparer::cmp_.

Member Data Documentation

◆ cmp_

template<typename T >
int(* v8::internal::Vector< T >::RawComparer::cmp_) (const T *, const T *)
private

Definition at line 129 of file vector.h.

Referenced by v8::internal::Vector< T >::RawComparer::operator()().


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