|
Distributed Ranges
|
distributed vector More...
#include <distributed_vector.hpp>
Public Types | |
| using | segment_type = dr::sp::device_vector< T, Allocator > |
| using | const_segment_type = std::add_const_t< dr::sp::device_vector< T, Allocator > > |
| using | value_type = T |
| using | size_type = std::size_t |
| using | difference_type = std::ptrdiff_t |
| using | pointer = decltype(std::declval< segment_type >().data()) |
| using | const_pointer = decltype(std::declval< std::add_const_t< segment_type > >().data()) |
| using | reference = std::iter_reference_t< pointer > |
| using | const_reference = std::iter_reference_t< const_pointer > |
| using | iterator = distributed_vector_iterator< T, segment_type > |
| using | const_iterator = distributed_vector_iterator< const T, const_segment_type > |
| using | allocator_type = Allocator |
Public Member Functions | |
| distributed_vector (std::size_t count=0) | |
| distributed_vector (std::size_t count, const T &value) | |
| distributed_vector (std::initializer_list< T > init) | |
| reference | operator[] (size_type pos) |
| const_reference | operator[] (size_type pos) const |
| size_type | size () const noexcept |
| auto | segments () |
| auto | segments () const |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| void | resize (size_type count, const value_type &value) |
| void | resize (size_type count) |
distributed vector