Akonadi

AkTraits::Container Concept Reference

#include <aktraits.h>

Concept definition

template<typename T>
concept AkTraits::Container = requires(const T &cont) {
typename T::value_type;
typename T::iterator;
typename T::const_iterator;
typename T::size_type;
{ std::begin(cont) } -> std::same_as<typename T::const_iterator>;
{ std::end(cont) } -> std::same_as<typename T::const_iterator>;
{ cont.size() } -> std::same_as<typename T::size_type>;
}
This is a very incomplete set of Container named requirement, but I'm too lazy to implement all of th...
Definition aktraits.h:18

Detailed Description

This is a very incomplete set of Container named requirement, but I'm too lazy to implement all of them, but this should be good enough to match regular Qt containers and /not/ match arbitrary non-container types.

Definition at line 18 of file aktraits.h.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.