xtensor
Loading...
Searching...
No Matches
xt::uvector< T, A > Class Template Reference

Public Types

using allocator_type = A
 
using value_type = typename std::allocator_traits<A>::value_type
 
using reference = value_type&
 
using const_reference = const value_type&
 
using pointer = typename std::allocator_traits<A>::pointer
 
using const_pointer = typename std::allocator_traits<A>::const_pointer
 
using size_type = typename std::allocator_traits<A>::size_type
 
using difference_type = typename std::allocator_traits<A>::difference_type
 
using iterator = pointer
 
using const_iterator = const_pointer
 
using reverse_iterator = std::reverse_iterator<iterator>
 
using const_reverse_iterator = std::reverse_iterator<const_iterator>
 

Public Member Functions

 uvector (const allocator_type &alloc) noexcept
 
 uvector (size_type count, const allocator_type &alloc=allocator_type())
 
 uvector (size_type count, const_reference value, const allocator_type &alloc=allocator_type())
 
template<class InputIt , class = detail::require_input_iter<InputIt>>
 uvector (InputIt first, InputIt last, const allocator_type &alloc=allocator_type())
 
 uvector (std::initializer_list< T > init, const allocator_type &alloc=allocator_type())
 
 uvector (const uvector &rhs)
 
 uvector (const uvector &rhs, const allocator_type &alloc)
 
uvectoroperator= (const uvector &)
 
 uvector (uvector &&rhs) noexcept
 
 uvector (uvector &&rhs, const allocator_type &alloc) noexcept
 
uvectoroperator= (uvector &&rhs) noexcept
 
allocator_type get_allocator () const noexcept
 
bool empty () const noexcept
 
size_type size () const noexcept
 
void resize (size_type size)
 
size_type max_size () const noexcept
 
void reserve (size_type new_cap)
 
size_type capacity () const noexcept
 
void shrink_to_fit ()
 
void clear ()
 
reference operator[] (size_type i)
 
const_reference operator[] (size_type i) const
 
reference at (size_type i)
 
const_reference at (size_type i) const
 
reference front ()
 
const_reference front () const
 
reference back ()
 
const_reference back () const
 
pointer data () noexcept
 
const_pointer data () const noexcept
 
iterator begin () noexcept
 
iterator end () noexcept
 
const_iterator begin () const noexcept
 
const_iterator end () const noexcept
 
const_iterator cbegin () const noexcept
 
const_iterator cend () const noexcept
 
reverse_iterator rbegin () noexcept
 
reverse_iterator rend () noexcept
 
const_reverse_iterator rbegin () const noexcept
 
const_reverse_iterator rend () const noexcept
 
const_reverse_iterator crbegin () const noexcept
 
const_reverse_iterator crend () const noexcept
 
void swap (uvector &rhs) noexcept
 

Detailed Description

template<class T, class A = std::allocator<T>>
class xt::uvector< T, A >

Definition at line 42 of file xstorage.hpp.

Member Typedef Documentation

◆ allocator_type

template<class T , class A = std::allocator<T>>
using xt::uvector< T, A >::allocator_type = A

Definition at line 46 of file xstorage.hpp.

◆ const_iterator

template<class T , class A = std::allocator<T>>
using xt::uvector< T, A >::const_iterator = const_pointer

Definition at line 58 of file xstorage.hpp.

◆ const_pointer

template<class T , class A = std::allocator<T>>
using xt::uvector< T, A >::const_pointer = typename std::allocator_traits<A>::const_pointer

Definition at line 52 of file xstorage.hpp.

◆ const_reference

template<class T , class A = std::allocator<T>>
using xt::uvector< T, A >::const_reference = const value_type&

Definition at line 50 of file xstorage.hpp.

◆ const_reverse_iterator

template<class T , class A = std::allocator<T>>
using xt::uvector< T, A >::const_reverse_iterator = std::reverse_iterator<const_iterator>

Definition at line 60 of file xstorage.hpp.

◆ difference_type

template<class T , class A = std::allocator<T>>
using xt::uvector< T, A >::difference_type = typename std::allocator_traits<A>::difference_type

Definition at line 55 of file xstorage.hpp.

◆ iterator

template<class T , class A = std::allocator<T>>
using xt::uvector< T, A >::iterator = pointer

Definition at line 57 of file xstorage.hpp.

◆ pointer

template<class T , class A = std::allocator<T>>
using xt::uvector< T, A >::pointer = typename std::allocator_traits<A>::pointer

Definition at line 51 of file xstorage.hpp.

◆ reference

template<class T , class A = std::allocator<T>>
using xt::uvector< T, A >::reference = value_type&

Definition at line 49 of file xstorage.hpp.

◆ reverse_iterator

template<class T , class A = std::allocator<T>>
using xt::uvector< T, A >::reverse_iterator = std::reverse_iterator<iterator>

Definition at line 59 of file xstorage.hpp.

◆ size_type

template<class T , class A = std::allocator<T>>
using xt::uvector< T, A >::size_type = typename std::allocator_traits<A>::size_type

Definition at line 54 of file xstorage.hpp.

◆ value_type

template<class T , class A = std::allocator<T>>
using xt::uvector< T, A >::value_type = typename std::allocator_traits<A>::value_type

Definition at line 48 of file xstorage.hpp.

Constructor & Destructor Documentation

◆ uvector() [1/10]

template<class T , class A >
xt::uvector< T, A >::uvector ( )
inlinenoexcept

Definition at line 239 of file xstorage.hpp.

◆ uvector() [2/10]

template<class T , class A >
xt::uvector< T, A >::uvector ( const allocator_type & alloc)
inlineexplicitnoexcept

Definition at line 245 of file xstorage.hpp.

◆ uvector() [3/10]

template<class T , class A >
xt::uvector< T, A >::uvector ( size_type count,
const allocator_type & alloc = allocator_type() )
inlineexplicit

Definition at line 253 of file xstorage.hpp.

◆ uvector() [4/10]

template<class T , class A >
xt::uvector< T, A >::uvector ( size_type count,
const_reference value,
const allocator_type & alloc = allocator_type() )
inline

Definition at line 266 of file xstorage.hpp.

◆ uvector() [5/10]

template<class T , class A >
template<class InputIt , class >
xt::uvector< T, A >::uvector ( InputIt first,
InputIt last,
const allocator_type & alloc = allocator_type() )
inline

Definition at line 281 of file xstorage.hpp.

◆ uvector() [6/10]

template<class T , class A >
xt::uvector< T, A >::uvector ( std::initializer_list< T > init,
const allocator_type & alloc = allocator_type() )
inline

Definition at line 290 of file xstorage.hpp.

◆ ~uvector()

template<class T , class A >
xt::uvector< T, A >::~uvector ( )
inline

Definition at line 299 of file xstorage.hpp.

◆ uvector() [7/10]

template<class T , class A >
xt::uvector< T, A >::uvector ( const uvector< T, A > & rhs)
inline

Definition at line 307 of file xstorage.hpp.

◆ uvector() [8/10]

template<class T , class A >
xt::uvector< T, A >::uvector ( const uvector< T, A > & rhs,
const allocator_type & alloc )
inline

Definition at line 318 of file xstorage.hpp.

◆ uvector() [9/10]

template<class T , class A >
xt::uvector< T, A >::uvector ( uvector< T, A > && rhs)
inlinenoexcept

Definition at line 349 of file xstorage.hpp.

◆ uvector() [10/10]

template<class T , class A >
xt::uvector< T, A >::uvector ( uvector< T, A > && rhs,
const allocator_type & alloc )
inlinenoexcept

Definition at line 359 of file xstorage.hpp.

Member Function Documentation

◆ at() [1/2]

template<class T , class A >
auto xt::uvector< T, A >::at ( size_type i)
inline

Definition at line 443 of file xstorage.hpp.

◆ at() [2/2]

template<class T , class A >
auto xt::uvector< T, A >::at ( size_type i) const
inline

Definition at line 453 of file xstorage.hpp.

◆ back() [1/2]

template<class T , class A >
auto xt::uvector< T, A >::back ( )
inline

Definition at line 475 of file xstorage.hpp.

◆ back() [2/2]

template<class T , class A >
auto xt::uvector< T, A >::back ( ) const
inline

Definition at line 481 of file xstorage.hpp.

◆ begin() [1/2]

template<class T , class A >
auto xt::uvector< T, A >::begin ( ) const
inlinenoexcept

Definition at line 511 of file xstorage.hpp.

◆ begin() [2/2]

template<class T , class A >
auto xt::uvector< T, A >::begin ( )
inlinenoexcept

Definition at line 499 of file xstorage.hpp.

◆ capacity()

template<class T , class A >
auto xt::uvector< T, A >::capacity ( ) const
inlinenoexcept

Definition at line 414 of file xstorage.hpp.

◆ cbegin()

template<class T , class A >
auto xt::uvector< T, A >::cbegin ( ) const
inlinenoexcept

Definition at line 523 of file xstorage.hpp.

◆ cend()

template<class T , class A >
auto xt::uvector< T, A >::cend ( ) const
inlinenoexcept

Definition at line 529 of file xstorage.hpp.

◆ clear()

template<class T , class A >
void xt::uvector< T, A >::clear ( )
inline

Definition at line 425 of file xstorage.hpp.

◆ crbegin()

template<class T , class A >
auto xt::uvector< T, A >::crbegin ( ) const
inlinenoexcept

Definition at line 559 of file xstorage.hpp.

◆ crend()

template<class T , class A >
auto xt::uvector< T, A >::crend ( ) const
inlinenoexcept

Definition at line 565 of file xstorage.hpp.

◆ data() [1/2]

template<class T , class A >
auto xt::uvector< T, A >::data ( ) const
inlinenoexcept

Definition at line 493 of file xstorage.hpp.

◆ data() [2/2]

template<class T , class A >
auto xt::uvector< T, A >::data ( )
inlinenoexcept

Definition at line 487 of file xstorage.hpp.

◆ empty()

template<class T , class A >
bool xt::uvector< T, A >::empty ( ) const
inlinenoexcept

Definition at line 385 of file xstorage.hpp.

◆ end() [1/2]

template<class T , class A >
auto xt::uvector< T, A >::end ( ) const
inlinenoexcept

Definition at line 517 of file xstorage.hpp.

◆ end() [2/2]

template<class T , class A >
auto xt::uvector< T, A >::end ( )
inlinenoexcept

Definition at line 505 of file xstorage.hpp.

◆ front() [1/2]

template<class T , class A >
auto xt::uvector< T, A >::front ( )
inline

Definition at line 463 of file xstorage.hpp.

◆ front() [2/2]

template<class T , class A >
auto xt::uvector< T, A >::front ( ) const
inline

Definition at line 469 of file xstorage.hpp.

◆ get_allocator()

template<class T , class A >
auto xt::uvector< T, A >::get_allocator ( ) const
inlinenoexcept

Definition at line 379 of file xstorage.hpp.

◆ max_size()

template<class T , class A >
auto xt::uvector< T, A >::max_size ( ) const
inlinenoexcept

Definition at line 403 of file xstorage.hpp.

◆ operator=() [1/2]

template<class T , class A >
uvector< T, A > & xt::uvector< T, A >::operator= ( const uvector< T, A > & rhs)
inline

Definition at line 327 of file xstorage.hpp.

◆ operator=() [2/2]

template<class T , class A >
uvector< T, A > & xt::uvector< T, A >::operator= ( uvector< T, A > && rhs)
inlinenoexcept

Definition at line 369 of file xstorage.hpp.

◆ operator[]() [1/2]

template<class T , class A >
auto xt::uvector< T, A >::operator[] ( size_type i)
inline

Definition at line 431 of file xstorage.hpp.

◆ operator[]() [2/2]

template<class T , class A >
auto xt::uvector< T, A >::operator[] ( size_type i) const
inline

Definition at line 437 of file xstorage.hpp.

◆ rbegin() [1/2]

template<class T , class A >
auto xt::uvector< T, A >::rbegin ( ) const
inlinenoexcept

Definition at line 547 of file xstorage.hpp.

◆ rbegin() [2/2]

template<class T , class A >
auto xt::uvector< T, A >::rbegin ( )
inlinenoexcept

Definition at line 535 of file xstorage.hpp.

◆ rend() [1/2]

template<class T , class A >
auto xt::uvector< T, A >::rend ( ) const
inlinenoexcept

Definition at line 553 of file xstorage.hpp.

◆ rend() [2/2]

template<class T , class A >
auto xt::uvector< T, A >::rend ( )
inlinenoexcept

Definition at line 541 of file xstorage.hpp.

◆ reserve()

template<class T , class A >
void xt::uvector< T, A >::reserve ( size_type new_cap)
inline

Definition at line 409 of file xstorage.hpp.

◆ resize()

template<class T , class A >
void xt::uvector< T, A >::resize ( size_type size)
inline

Definition at line 397 of file xstorage.hpp.

◆ shrink_to_fit()

template<class T , class A >
void xt::uvector< T, A >::shrink_to_fit ( )
inline

Definition at line 420 of file xstorage.hpp.

◆ size()

template<class T , class A >
auto xt::uvector< T, A >::size ( ) const
inlinenoexcept

Definition at line 391 of file xstorage.hpp.

◆ swap()

template<class T , class A >
void xt::uvector< T, A >::swap ( uvector< T, A > & rhs)
inlinenoexcept

Definition at line 571 of file xstorage.hpp.


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