Go to the source code of this file.
Classes | |
class | eagine::memory::owned_block |
Specialization of block indicating byte span ownership. More... | |
class | eagine::memory::block_owner |
Base class for classes that act as memory block owners. More... | |
Namespaces | |
eagine | |
Common code is placed in this namespace. | |
Typedefs | |
template<bool IsConst> | |
using | eagine::memory::basic_block = basic_span< std::conditional_t< IsConst, const byte, byte > > |
Alias for byte spans. | |
using | eagine::memory::block = basic_block< false > |
Alias for non-const byte memory span. More... | |
using | eagine::memory::const_block = basic_block< true > |
Alias for const byte memory span. More... | |
Functions | |
template<typename T , typename P , typename S > | |
static constexpr auto | eagine::memory::as_bytes (basic_span< T, P, S > spn) noexcept -> basic_block< std::is_const_v< T >> |
Converts a span into a basic_block. More... | |
static constexpr auto | eagine::memory::as_chars (block blk) noexcept |
Converts a block into a span of characters. More... | |
static constexpr auto | eagine::memory::as_chars (const_block blk) noexcept |
Converts a block into a span of characters. More... | |
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