proxygen
IntArray< M > Struct Template Reference

Public Member Functions

 IntArray ()
 
 IntArray (int v)
 
 operator int ()
 
 IntArray ()
 
 IntArray (int v)
 
 operator int ()
 

Public Attributes

int a [M]
 

Detailed Description

template<size_t M>
struct IntArray< M >

Definition at line 518 of file DynamicBoundedQueueTest.cpp.

Constructor & Destructor Documentation

template<size_t M>
IntArray< M >::IntArray ( )
inline

Definition at line 520 of file DynamicBoundedQueueTest.cpp.

520 {}
template<size_t M>
IntArray< M >::IntArray ( int  v)
inline

Definition at line 521 of file DynamicBoundedQueueTest.cpp.

References i, M, and v.

521  {
522  for (size_t i = 0; i < M; ++i) {
523  a[i] = v;
524  }
525  }
auto v
**Optimized Holders **The template hazptr_array< M > provides most of the functionality *of M hazptr_holder s but with faster construction destruction *for M
Definition: Hazptr.h:104
template<size_t M>
IntArray< M >::IntArray ( )
inline

Definition at line 461 of file UnboundedQueueTest.cpp.

461 {}
template<size_t M>
IntArray< M >::IntArray ( int  v)
inline

Definition at line 462 of file UnboundedQueueTest.cpp.

References i, M, and v.

462  {
463  for (size_t i = 0; i < M; ++i) {
464  a[i] = v;
465  }
466  }
auto v
**Optimized Holders **The template hazptr_array< M > provides most of the functionality *of M hazptr_holder s but with faster construction destruction *for M
Definition: Hazptr.h:104

Member Function Documentation

template<size_t M>
IntArray< M >::operator int ( )
inline

Definition at line 467 of file UnboundedQueueTest.cpp.

467  {
468  return a[0];
469  }
template<size_t M>
IntArray< M >::operator int ( )
inline

Definition at line 526 of file DynamicBoundedQueueTest.cpp.

526  {
527  return a[0];
528  }

Member Data Documentation

template<size_t M>
int IntArray< M >::a

Definition at line 519 of file DynamicBoundedQueueTest.cpp.


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