LocARNA-1.9.2
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions
LocARNA::plusvector< T > Class Template Reference

Implements a vector with += operator. More...

#include <plusvector.hh>

Inherits std::vector< T >.

List of all members.

Public Member Functions

plusvectoroperator+= (const T &x)
 Add an element to end of vector.

Detailed Description

template<class T>
class LocARNA::plusvector< T >

Implements a vector with += operator.

The class provides an alternate syntax for push_back.

See also:
Alignment::write_pp() for usage example

Member Function Documentation

template<class T >
plusvector& LocARNA::plusvector< T >::operator+= ( const T &  x) [inline]

Add an element to end of vector.

Parameters:
xvector element
Returns:
*this
Postcondition:
x is added at end of *this (like push_back)

The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends