Skip to content

Commit

Permalink
added tag to bitset, added check that block type is unsigned integral
Browse files Browse the repository at this point in the history
  • Loading branch information
drexlerd committed May 26, 2024
1 parent dd87e8a commit 5a8d6bf
Show file tree
Hide file tree
Showing 2 changed files with 134 additions and 77 deletions.
4 changes: 4 additions & 0 deletions include/flatmemory/details/concepts.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ namespace flatmemory
// Concept to check whether T is integral
template<typename T>
concept IsIntegral = std::is_integral_v<T>;

// Concept to check whether T is an unsigned integral
template<typename T>
concept IsUnsignedIntegral = IsIntegral<T> && std::is_unsigned_v<T>;
}

#endif
Loading

0 comments on commit 5a8d6bf

Please sign in to comment.