mn_array.hpp File Reference

Class for a dynamic array. This file is part of the Mini Thread Library (https://github.com/RoseLeBlood/MiniThread ). More...

#include "../mn_config.hpp"
#include <cassert>
#include <typeinfo>
#include "mn_algorithm.hpp"
#include "../mn_deleter.hpp"
#include "../mn_def.hpp"
#include "../mn_functional.hpp"
#include "../mn_typetraits.hpp"
#include "../utils/mn_utils.hpp"
#include "../container/mn_pair.hpp"

Go to the source code of this file.

Classes

struct  mn::container::array_traits< TArray >
 
class  mn::container::basic_array_iterator< T >
 Helper class for array iterators. More...
 
class  mn::container::basic_array< T, TAllocator, TDeleter >
 Lightweight c++11 array implementation. More...
 

Namespaces

 mn
 
 mn::container
 

Typedefs

template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
using mn::container::array = basic_array< T, TAllocator, TDeleter >
 

Functions

template<typename T , class TAllocator , class TDeleter >
bool mn::container::operator== (const basic_array< T, TAllocator, TDeleter > &a, const basic_array< T, TAllocator, TDeleter > &b)
 
template<typename T , class TAllocator , class TDeleter >
bool mn::container::operator!= (const basic_array< T, TAllocator, TDeleter > &a, const basic_array< T, TAllocator, TDeleter > &b)
 
template<typename T , class TAllocator , class TDeleter >
bool mn::container::operator< (const basic_array< T, TAllocator, TDeleter > &a, const basic_array< T, TAllocator, TDeleter > &b)
 
template<typename T , class TAllocator , class TDeleter >
bool mn::container::operator<= (const basic_array< T, TAllocator, TDeleter > &a, const basic_array< T, TAllocator, TDeleter > &b)
 
template<typename T , class TAllocator , class TDeleter >
bool mn::container::operator> (const basic_array< T, TAllocator, TDeleter > &a, const basic_array< T, TAllocator, TDeleter > &b)
 
template<typename T , class TAllocator , class TDeleter >
bool mn::container::operator>= (const basic_array< T, TAllocator, TDeleter > &a, const basic_array< T, TAllocator, TDeleter > &b)
 
template<typename T , class TAllocator , class TDeleter >
void mn::container::swap (basic_array< T, TAllocator, TDeleter > &a, basic_array< T, TAllocator, TDeleter > &b)
 
template<typename T , class TAllocator , class TDeleter >
void mn::container::fill (basic_array< T, TAllocator, TDeleter > &a, const int val)
 
template<typename T , class TAllocator , class TDeleter >
void mn::container::zero (basic_array< T, TAllocator, TDeleter > &a)
 

Detailed Description

Class for a dynamic array. This file is part of the Mini Thread Library (https://github.com/RoseLeBlood/MiniThread ).

Author
Copyright (c) 2021 Amber-Sophia Schroeck
License
The Mini Thread Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, version 3, or (at your option) any later version.

The Mini Thread Library 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. See the GNU General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with the Mini Thread Library; if not, see https://www.gnu.org/licenses/.