codex
Loading...
Searching...
No Matches
mutable.hpp File Reference
#include <array>
#include <cstddef>
#include <cstring>
#include <numeric>
#include <ranges>
#include <type_traits>
Include dependency graph for mutable.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  anonymous_namespace{mutable.hpp}::function_obj
 Equivalent to the lambda expression in codex::copy_mutable_lambda. More...
 

Namespaces

namespace  anonymous_namespace{mutable.hpp}
 
namespace  codex
 

Concepts

concept  anonymous_namespace{mutable.hpp}::arithmetic
 Concept equivalent of the standard type trait.
 

Functions

auto anonymous_namespace{mutable.hpp}::as_bytes (const void *p)
 Helper function to reduce the number of casts.
 
template<arithmetic T>
auto anonymous_namespace{mutable.hpp}::arg_size (const T &)
 Overload set that determines the size in bytes of its argument.
 
auto anonymous_namespace{mutable.hpp}::arg_ptr (const arithmetic auto &t)
 Overload set that determines the address of its argument's content.
 
auto anonymous_namespace{mutable.hpp}::arg_size (const std::ranges::sized_range auto &r)
 Overload for ranges of values.
 
auto anonymous_namespace{mutable.hpp}::arg_ptr (const std::ranges::range auto &r)
 Overload for ranges of values.
 
void codex::copy_mutable_lambda (const auto &...ts, std::vector< std::byte > *v)
 memcpyes each ts value into v (using a lambda expression).
 
void codex::copy_function_object (const auto &...ts, std::vector< std::byte > *v)
 memcpyes each ts value into v (using a function object).