Empirical
|
A drop-in wrapper for std::vector; adds on bounds checking in debug mode. More...
#include <initializer_list>
#include <iterator>
#include <utility>
#include <vector>
#include "assert.h"
Go to the source code of this file.
Classes | |
class | emp::vector< T, Ts > |
Build a debug wrapper emp::vector around std::vector. More... | |
struct | emp::vector< T, Ts >::iterator_wrapper< ITERATOR_T > |
Setup an iterator wrapper to make sure that they're not used again after a vector changes. More... | |
class | emp::vector< bool, Ts... > |
Build a specialized debug wrapper for emp::vector<bool> More... | |
Namespaces | |
emp | |
If we are in emscripten, make sure to include the header. | |
Functions | |
template<typename T , typename... Ts> | |
std::ostream & | operator<< (std::ostream &out, const emp::vector< T, Ts... > &v) |
template<typename T , typename... Ts> | |
std::istream & | operator>> (std::istream &is, emp::vector< T, Ts... > &v) |
A drop-in wrapper for std::vector; adds on bounds checking in debug mode.
This class is a drop-in wrapper for std::vector, adding on bounds checking. If EMP_NDEBUG is set then it reverts back to std::vector.
std::ostream& operator<< | ( | std::ostream & | out, |
const emp::vector< T, Ts... > & | v | ||
) |
std::istream& operator>> | ( | std::istream & | is, |
emp::vector< T, Ts... > & | v | ||
) |