Vowpal Wabbit
Classes | Macros | Functions
v_array.h File Reference
#include <algorithm>
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <ostream>
#include <string>
#include <utility>
#include <type_traits>
#include "vw_exception.h"
#include "memory.h"

Classes

struct  v_array< T, Enable >
 This is a diagnostic overload used to prevent v_array from being used with types that are not trivially copyable. More...
 
struct  v_array< T, typename std::enable_if< std::is_trivially_copyable< T >::value >::type >
 v_array is a container type that makes use of realloc for efficiency. However, it is only safe to use trivially copyable types, as std::realloc may do a memcpy if a new piece of memory must be allocated. More...
 

Macros

#define NOMINMAX
 

Functions

template<class T >
std::ostream & operator<< (std::ostream &os, const v_array< T > &v)
 
template<class T , class U >
std::ostream & operator<< (std::ostream &os, const v_array< std::pair< T, U > > &v)
 

Macro Definition Documentation

◆ NOMINMAX

#define NOMINMAX

Function Documentation

◆ operator<<() [1/2]

template<class T >
std::ostream& operator<< ( std::ostream &  os,
const v_array< T > &  v 
)

◆ operator<<() [2/2]

template<class T , class U >
std::ostream& operator<< ( std::ostream &  os,
const v_array< std::pair< T, U > > &  v 
)