hpx/compute_local/vector.hpp
hpx/compute_local/vector.hpp#
Defined in header hpx/compute_local/vector.hpp.
See Public API for a list of names and headers that are part of the public HPX API.
-
namespace hpx
-
namespace compute
Functions
-
template<typename T, typename Allocator = std::allocator<T>>
class vector# Public Types
-
using access_target = typename alloc_traits::access_target#
-
using reference = typename alloc_traits::reference#
-
using const_reference = typename alloc_traits::const_reference#
-
using pointer = typename alloc_traits::pointer#
-
using const_pointer = typename alloc_traits::const_pointer#
Public Functions
-
template<typename InIter, typename Enable = typename std::enable_if<hpx::traits::is_input_iterator<InIter>::value>::type>
inline vector(InIter first, InIter last, Allocator const &alloc)#
-
inline ~vector()#
-
inline allocator_type get_allocator() const noexcept#
Returns the allocator associated with the container.
-
inline const_reference operator[](size_type pos) const#
-
inline pointer data() noexcept#
Returns pointer to the underlying array serving as element storage. The pointer is such that range [data(); data() + size()) is always a valid range, even if the container is empty (data() is not dereference-able in that case).
-
inline const_pointer data() const noexcept#
Returns pointer to the underlying array serving as element storage. The pointer is such that range [data(); data() + size()) is always a valid range, even if the container is empty (data() is not dereference-able in that case).
-
inline T *device_data() const noexcept#
Returns a raw pointer corresponding to the address of the data allocated on the device.
-
inline bool empty() const noexcept#
Returns: size() == 0.
-
inline void resize(size_type, T const&)#
Effects: If size <= size(), equivalent to calling pop_back() size() - size times. If size() < size, appends size - size() copies of val to the sequence.
Requires: T shall be CopyInsertable into *this.
Remarks: If an exception is thrown there are no effects.
-
inline const_iterator cbegin() const noexcept#
-
inline const_iterator cend() const noexcept#
-
inline const_iterator begin() const noexcept#
-
inline const_iterator end() const noexcept#
-
inline void swap(vector &other) noexcept#
Effects: Exchanges the contents and capacity() of *this with that of x.
Complexity: Constant time.
-
inline void clear() noexcept#
Effects: Erases all elements in the range [begin(),end()). Destroys all elements in ‘a’. Invalidates all references, pointers, and iterators referring to the elements of a and may invalidate the past-the-end iterator.
Post: a.empty() returns true.
Complexity: Linear.
Public Static Functions
-
static inline void resize(size_type)#
Effects: If size <= size(), equivalent to calling pop_back() size()
size times. If size() < size, appends size - size() default-inserted elements to the sequence.
Requires: T shall be MoveInsertable and DefaultInsertable into *this.
Remarks: If an exception is thrown other than by the move constructor of a non-CopyInsertable T there are no effects.
-
using access_target = typename alloc_traits::access_target#
-
template<typename T, typename Allocator = std::allocator<T>>
-
namespace compute