IsoSpec  2.1.2
Public Types | Public Member Functions | Public Attributes | Friends | List of all members
unsafe_pod_vector< T > Class Template Reference

#include <pod_vector.h>

Public Types

typedef T * iterator
 
typedef T value_type
 
typedef size_t size_type
 
typedef T & reference
 

Public Member Functions

void init ()
 
void init (size_t initial_size)
 
 unsafe_pod_vector (const pod_vector< T > &other)=delete
 
unsafe_pod_vectoroperator= (const pod_vector< T > &other)=delete
 
 unsafe_pod_vector (unsafe_pod_vector< T > &&other)
 
void free ()
 
void fast_reserve (size_t n)
 
void reserve (size_t n)
 
void resize (size_t new_size)
 
void resize_and_wipe (size_t new_size)
 
ISOSPEC_FORCE_INLINE void nocheck_push_back (const T &val) noexcept
 
ISOSPEC_FORCE_INLINE void push_back (const T &val)
 
ISOSPEC_FORCE_INLINE T & operator[] (size_t n) noexcept
 
const ISOSPEC_FORCE_INLINE T & operator[] (size_t n) const noexcept
 
ISOSPEC_FORCE_INLINE size_t size () const noexcept
 
ISOSPEC_FORCE_INLINE size_t capacity () const noexcept
 
ISOSPEC_FORCE_INLINE T * data () noexcept
 
const ISOSPEC_FORCE_INLINE T * data () const noexcept
 
ISOSPEC_FORCE_INLINE bool empty () const noexcept
 
const ISOSPEC_FORCE_INLINE T & back () const noexcept
 
ISOSPEC_FORCE_INLINE void pop_back () noexcept
 
void swap (pod_vector< T > &other) noexcept
 
iterator begin () noexcept
 
const_iterator begin () const noexcept
 
const_iterator cbegin () const noexcept
 
iterator end () noexcept
 
const_iterator end () const noexcept
 
const_iterator cend () const noexcept
 
const ISOSPEC_FORCE_INLINE T & front () const noexcept
 
void clear ()
 

Public Attributes

const typedef T * const_iterator
 
const typedef T & const_reference
 

Friends

class pod_vector< T >
 

Detailed Description

template<typename T>
class unsafe_pod_vector< T >

Copyright (C) 2015-2020 Mateusz Łącki and Michał Startek.

This file is part of IsoSpec.

IsoSpec is free software: you can redistribute it and/or modify it under the terms of the Simplified ("2-clause") BSD licence.

IsoSpec is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

You should have received a copy of the Simplified BSD Licence along with IsoSpec. If not, see https://opensource.org/licenses/BSD-2-Clause.

Definition at line 28 of file pod_vector.h.


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