Detects whether T is a tuple‐like type (supports std::tuple_size) that is not also a range.

Synopsis

Declared in <fmt/ranges.h>

template<typename T>
struct is_tuple_like;

Static Data Members

Name

Description

value

true if T is tuple‐like and not a range, false otherwise.

Specializations

Name

Description

is_tuple_like<std::complex<T>>

std::complex<T> is formatted as a complex number, not as a tuple‐like pair of its real and imaginary parts.

Created with MrDocs