Classes | Namespaces | Functions
SmallVector.h File Reference

Header file for the SmallVector implementation. More...

#include <algorithm>
#include <memory>
#include <blaze/util/algorithms/Destroy.h>
#include <blaze/util/algorithms/DestroyAt.h>
#include <blaze/util/algorithms/Max.h>
#include <blaze/util/algorithms/UninitializedDefaultConstruct.h>
#include <blaze/util/algorithms/UninitializedMove.h>
#include <blaze/util/Assert.h>
#include <blaze/util/constraints/Const.h>
#include <blaze/util/constraints/Volatile.h>
#include <blaze/util/Exception.h>
#include <blaze/util/InitializerList.h>
#include <blaze/util/Types.h>
#include <blaze/util/typetraits/AlignmentOf.h>
#include <blaze/util/typetraits/IsConstructible.h>
#include <blaze/util/typetraits/IsAssignable.h>

Go to the source code of this file.

Classes

class  blaze::SmallVector< T, N, A >
 Implementation of a dynamic vector with small vector optimization.The SmallVector class template is a hybrid data structure between a static array and a dynamic vector. It provides static, in-place memory for up to N elements of type T, but can grow beyond this size by allocating dynamic memory via its allocator of type A. More...
 
struct  blaze::SmallVector< T, N, A >::Uninitialized
 Definition of the nested auxiliary struct Uninitialized. More...
 

Namespaces

 blaze
 Namespace of the Blaze C++ math library.
 

Functions

template<typename T , size_t N, typename A >
SmallVector< T, N, A >::ConstIterator blaze::cend (SmallVector< T, N, A > &sv)
 Returns an iterator just past the last element of the given small vector. More...
 
SmallVector operators
template<typename T1 , size_t N1, typename A1 , typename T2 , size_t N2, typename A2 >
bool blaze::operator== (const SmallVector< T1, N1, A1 > &lhs, const SmallVector< T2, N2, A2 > &rhs)
 Equality operator for the comparison of two dense vectors. More...
 
template<typename T1 , size_t N1, typename A1 , typename T2 , size_t N2, typename A2 >
bool blaze::operator!= (const SmallVector< T1, N1, A1 > &lhs, const SmallVector< T2, N2, A2 > &rhs)
 Inequality operator for the comparison of two dense vectors. More...
 
template<typename T , size_t N, typename A >
SmallVector< T, N, A >::Iterator blaze::begin (SmallVector< T, N, A > &sv)
 Returns an iterator to the first element of the given small vector. More...
 
template<typename T , size_t N, typename A >
SmallVector< T, N, A >::ConstIterator blaze::begin (const SmallVector< T, N, A > &sv)
 Returns an iterator to the first element of the given small vector. More...
 
template<typename T , size_t N, typename A >
SmallVector< T, N, A >::ConstIterator blaze::cbegin (const SmallVector< T, N, A > &sv)
 Returns an iterator to the first element of the given small vector. More...
 
template<typename T , size_t N, typename A >
SmallVector< T, N, A >::Iterator blaze::end (SmallVector< T, N, A > &sv)
 Returns an iterator just past the last element of the given small vector. More...
 
template<typename T , size_t N, typename A >
SmallVector< T, N, A >::ConstIterator blaze::end (const SmallVector< T, N, A > &sv)
 Returns an iterator just past the last element of the given small vector. More...
 
template<typename T , size_t N, typename A >
SmallVector< T, N, A >::ConstIterator blaze::cend (const SmallVector< T, N, A > &sv)
 
template<typename T , size_t N, typename A >
void blaze::clear (SmallVector< T, N, A > &sv)
 Clearing the given small vector. More...
 
template<typename T , size_t N, typename A >
void blaze::swap (SmallVector< T, N, A > &a, SmallVector< T, N, A > &b) noexcept(IsNothrowMoveConstructible< T >::value)
 Swapping the contents of two small vectors. More...
 

Detailed Description

Header file for the SmallVector implementation.

Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved

This file is part of the Blaze library. You can redistribute it and/or modify it under the terms of the New (Revised) BSD License. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the names of the Blaze development group nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.