ConstrainedContainer Class

template <typename T> requires detail::is_integral<T>::value class ConstrainedContainer

A container template with a requires clause on the class itself. More...

Header: #include <concepts.h>

Public Functions

ConstrainedContainer(int size)
int size() const

Detailed Description

T must be an integral type.

Member Function Documentation

[explicit] ConstrainedContainer::ConstrainedContainer(int size)

Constructs a container with the given size.

int ConstrainedContainer::size() const

Returns the size of the container.