P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::safe_vector< T, Alloc > Class Template Reference

#include <safe_vector.h>

Inheritance diagram for P4::safe_vector< T, Alloc >:
[legend]

Public Types

typedef std::vector< T >::const_iterator const_iterator
 
typedef std::vector< T, Alloc >::const_reference const_reference
 
typedef std::vector< T, Alloc >::reference reference
 
typedef std::vector< T, Alloc >::size_type size_type
 

Public Member Functions

reference operator[] (size_type n)
 
const_reference operator[] (size_type n) const
 

Detailed Description

template<class T, class Alloc = std::allocator<T>>
class P4::safe_vector< T, Alloc >

An enhanced version of std::vector that performs bounds checking for operator[].