Euphoria
eu::core::LastN< T > Struct Template Reference

#include <last_n.h>

Public Member Functions

 LastN (std::size_t s)
 
void push (const T &t)
 
const T * data () const
 
int size () const
 

Public Attributes

std::vector< T > d
 
std::size_t max
 

Detailed Description

template<typename T>
struct eu::core::LastN< T >

Definition at line 12 of file last_n.h.

Constructor & Destructor Documentation

◆ LastN()

template<typename T >
eu::core::LastN< T >::LastN ( std::size_t  s)
inlineexplicit

Definition at line 17 of file last_n.h.

Member Function Documentation

◆ data()

template<typename T >
const T* eu::core::LastN< T >::data ( ) const
inline

Definition at line 30 of file last_n.h.

◆ push()

template<typename T >
void eu::core::LastN< T >::push ( const T &  t)
inline

Definition at line 20 of file last_n.h.

◆ size()

template<typename T >
int eu::core::LastN< T >::size ( ) const
inline

Definition at line 37 of file last_n.h.

Member Data Documentation

◆ d

template<typename T >
std::vector<T> eu::core::LastN< T >::d

Definition at line 14 of file last_n.h.

◆ max

template<typename T >
std::size_t eu::core::LastN< T >::max

Definition at line 15 of file last_n.h.


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