arrp 0.0.15
Auto returning resource pool for modern C++
Loading...
Searching...
No Matches
siddiqsoft::arrp::NonNumericMoveConstructible Concept Reference

Concept for types that are move-constructible but not arithmetic. More...

#include <siddiqsoft/private/scoped_resource.hpp>

Concept definition

template<typename T>
concept NonNumericMoveConstructible = std::move_constructible<T> && !std::is_arithmetic_v<T>
Concept for types that are move-constructible but not arithmetic.

Detailed Description

Concept for types that are move-constructible but not arithmetic.

This concept ensures that a type T satisfies two requirements:

  1. T is move-constructible (std::move_constructible<T>)
  2. T is not an arithmetic type (integers, floats, etc.)

This prevents wrapping primitive types which would be inefficient and defeats the purpose of resource pooling.

Definition at line 78 of file scoped_resource.hpp.