|
template<typename T , typename P , typename S > |
static constexpr auto | eagine::memory::absolute (basic_span< T, P, S > spn) noexcept -> basic_span< T, T *, S > |
| Converts argument to span using a native pointer type. More...
|
|
template<typename T > |
static constexpr auto | eagine::memory::view_one (const T &value) noexcept -> const_span< T > |
| Creates a single-const-element view over the specified value.
|
|
template<typename T > |
static constexpr auto | eagine::memory::cover_one (T &value) noexcept -> span_if_mutable< T > |
| Creates a single-element mutable span over the specified value.
|
|
template<typename T > |
static constexpr auto | eagine::memory::view_one (const T *pointer) noexcept -> const_span< T > |
| Creates a single-const-element view from the specified pointer.
|
|
template<typename T > |
static constexpr auto | eagine::memory::cover_one (T *pointer) noexcept -> span_if_mutable< T > |
| Creates a single-element mutable span from the specified pointer.
|
|
template<typename T , typename S > |
static constexpr auto | eagine::memory::view (T *addr, S size) noexcept -> const_span< T > |
| Creates a view starting at the specified pointer and specified length.
|
|
template<typename T , typename S > |
static constexpr auto | eagine::memory::cover (T *addr, S size) noexcept -> span_if_mutable< T > |
| Creates a span starting at the specified pointer and specified length.
|
|
template<typename T , typename S > |
static constexpr auto | eagine::memory::view (const_address addr, S size) noexcept -> const_span< T > |
| Creates a view starting at the specified address and specified length.
|
|
template<typename T , typename S > |
static constexpr auto | eagine::memory::cover (address addr, S size) noexcept -> span_if_mutable< T > |
| Creates a span starting at the specified address and specified length.
|
|
template<typename T , std::size_t N> |
static constexpr auto | eagine::memory::view (const T(&array)[N]) noexcept -> const_span< T > |
| Creates a const view over the specified fixed-size array.
|
|
template<typename T , std::size_t N> |
static constexpr auto | eagine::memory::cover (T(&array)[N]) noexcept -> span_if_mutable< T > |
| Creates a mutable span covering the specified fixed-size array.
|
|
template<typename T > |
static constexpr auto | eagine::memory::view (std::initializer_list< T > il) noexcept -> const_span< T > |
| Creates a const view over the specified initializer list.
|
|
template<typename C , typename = std::enable_if_t<has_span_data_member_v<C> && has_span_size_member_v<C>>> |
static constexpr auto | eagine::memory::view (const C &container) noexcept |
| Creates a const view over a compatible contiguous container.
|
|
template<typename C , typename = std::enable_if_t<has_span_data_member_v<C> && has_span_size_member_v<C>>> |
static constexpr auto | eagine::memory::cover (C &container) noexcept |
| Creates a mutable span covering a compatible contiguous container.
|
|
template<typename T , typename B , typename P , typename S > |
static constexpr auto | eagine::memory::can_accomodate (basic_span< B, P, S > blk, span_size_t count, type_identity< T > tid={}) noexcept |
| Indicates if the specified memory block can accomodate count elements of T.
|
|
template<typename T , typename B , typename P , typename S > |
static constexpr auto | eagine::memory::can_accomodate (basic_span< B, P, S > blk, type_identity< T > tid={}) noexcept |
| Indicates if the specified memory block can accomodate one element of T.
|
|
template<typename T , typename B , typename P , typename S > |
static constexpr auto | eagine::memory::accomodate (basic_span< B, P, S > blk, type_identity< T > tid={}) noexcept -> basic_span< std::add_const_t< T >, rebind_pointer_t< P, T >, S > |
| Returns a span, rebinding the element type (typically from basic_block). More...
|
|
template<typename T , typename P , typename S > |
static constexpr auto | eagine::memory::extract (basic_span< T, P, S > spn) noexcept -> T & |
| Overload of extract for spans. Returns the first element,. More...
|
|
template<typename T , typename P , typename S > |
static constexpr auto | eagine::memory::extract_or (basic_span< T, P, S > spn, T &fallback) noexcept -> T & |
| Overload of extract_or for spans. Returns the first element,.
|
|
template<typename T , typename P , typename S , typename F > |
static constexpr auto | eagine::memory::extract_or (basic_span< T, P, S > spn, F &&fallback) -> std::enable_if_t< std::is_convertible_v< F, T >, T > |
| Overload of extract_or for spans. Returns the first element,.
|
|
Copyright Matus Chochlik. Distributed under the Boost Software License, Version 1.0. See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt