xdrpp
RFC4506 XDR compiler and message library
Public Types | Public Member Functions | Static Public Member Functions | List of all members
xdr::xvector< T, N > Struct Template Reference

A vector with a maximum size (returned by xvector::max_size()). More...

#include <types.h>

Inheritance diagram for xdr::xvector< T, N >:
Inheritance graph
[legend]
Collaboration diagram for xdr::xvector< T, N >:
Collaboration graph
[legend]

Public Types

using vector = std::vector< T >
 

Public Member Functions

void append (const T *elems, std::size_t n)
 
T & extend_at (uint32_t i)
 
void resize (uint32_t n)
 

Static Public Member Functions

static Constexpr uint32_t max_size ()
 Return the maximum size allowed by the type.
 
static void check_size (size_t n)
 Check whether a size is in bounds.
 

Detailed Description

template<typename T, uint32_t N = XDR_MAX_LEN>
struct xdr::xvector< T, N >

A vector with a maximum size (returned by xvector::max_size()).

Note that you can exceed the size, but an error will happen when marshaling or unmarshaling the data structure.

Definition at line 420 of file types.h.


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