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<std::input_iterator 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 34 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 38 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 50 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 44 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 42 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 52 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 47 of file xstorage.hpp.

◆ iterator

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

Definition at line 49 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 43 of file xstorage.hpp.

◆ reference

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

Definition at line 41 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 51 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 46 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 40 of file xstorage.hpp.

Constructor & Destructor Documentation

◆ uvector() [1/10]

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

Definition at line 231 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 237 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 245 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 258 of file xstorage.hpp.

◆ uvector() [5/10]

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

Definition at line 273 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 282 of file xstorage.hpp.

◆ ~uvector()

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

Definition at line 291 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 299 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 310 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 341 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 351 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 435 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 445 of file xstorage.hpp.

◆ back() [1/2]

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

Definition at line 467 of file xstorage.hpp.

◆ back() [2/2]

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

Definition at line 473 of file xstorage.hpp.

◆ begin() [1/2]

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

Definition at line 503 of file xstorage.hpp.

◆ begin() [2/2]

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

Definition at line 491 of file xstorage.hpp.

◆ capacity()

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

Definition at line 406 of file xstorage.hpp.

◆ cbegin()

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

Definition at line 515 of file xstorage.hpp.

◆ cend()

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

Definition at line 521 of file xstorage.hpp.

◆ clear()

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

Definition at line 417 of file xstorage.hpp.

◆ crbegin()

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

Definition at line 551 of file xstorage.hpp.

◆ crend()

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

Definition at line 557 of file xstorage.hpp.

◆ data() [1/2]

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

Definition at line 485 of file xstorage.hpp.

◆ data() [2/2]

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

Definition at line 479 of file xstorage.hpp.

◆ empty()

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

Definition at line 377 of file xstorage.hpp.

◆ end() [1/2]

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

Definition at line 509 of file xstorage.hpp.

◆ end() [2/2]

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

Definition at line 497 of file xstorage.hpp.

◆ front() [1/2]

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

Definition at line 455 of file xstorage.hpp.

◆ front() [2/2]

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

Definition at line 461 of file xstorage.hpp.

◆ get_allocator()

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

Definition at line 371 of file xstorage.hpp.

◆ max_size()

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

Definition at line 395 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 319 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 361 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 423 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 429 of file xstorage.hpp.

◆ rbegin() [1/2]

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

Definition at line 539 of file xstorage.hpp.

◆ rbegin() [2/2]

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

Definition at line 527 of file xstorage.hpp.

◆ rend() [1/2]

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

Definition at line 545 of file xstorage.hpp.

◆ rend() [2/2]

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

Definition at line 533 of file xstorage.hpp.

◆ reserve()

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

Definition at line 401 of file xstorage.hpp.

◆ resize()

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

Definition at line 389 of file xstorage.hpp.

◆ shrink_to_fit()

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

Definition at line 412 of file xstorage.hpp.

◆ size()

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

Definition at line 383 of file xstorage.hpp.

◆ swap()

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

Definition at line 563 of file xstorage.hpp.


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