Kiwaku 0.1-beta
Containers Well Made
 
Loading...
Searching...
No Matches

◆ contains()

template<auto... D>
template<std::integral... Coords>
requires (static_order == sizeof...(Coords))
constexpr bool kwk::shape< D >::contains ( Coords...  p) const
inlineconstexprnoexcept

Check if a position fits into current shape volume.

Check if all coordinates of a given position fits inside a shape volume. Does not participate in overload resolution if the order of the shape and the dimension of the coordinate do not match.

Parameters
pList of coordinates to check
Returns
true if all extent of other fits exactly inside current shape, false otherwise.