TRIQS/nda 1.3.0
Multi-dimensional array library for C++
Loading...
Searching...
No Matches
nda::mem::OwningHandle Concept Reference

#include <nda/concepts.hpp>

Detailed Description

Check if a given type satisfies the owning memory handle concept.

In addition to the requirements of the nda::mem::Handle concept, owning memory handles are aware of the size of the memory they manage and can be used to release the memory.

Template Parameters
HType to check.
TValue type of the handle.

Definition at line 201 of file concepts.hpp.

Concept definition

template<typename H, typename T typename std::remove_cvref_t<H>::value_type>
concept nda::mem::OwningHandle = Handle<H, T> and requires(H const &h) {
requires not std::is_const_v<typename std::remove_cvref_t<H>::value_type>;
{ h.size() } noexcept -> std::same_as<long>;
}
Check if a given type satisfies the memory handle concept.
Definition concepts.hpp:184
Check if a given type satisfies the owning memory handle concept.
Definition concepts.hpp:201