morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::reactive::detail::EqualityUsable< T > Struct Template Reference

Whether == is usable for T: declared, and its element types usable too. More...

#include <graph.hpp>

Detailed Description

template<typename T>
struct morph::reactive::detail::EqualityUsable< T >

Whether == is usable for T: declared, and its element types usable too.

std::equality_comparable alone is not enough. The standard containers declare an unconstrained operator==, so it holds for a container whose element has no ==, and comparing two of them then fails to compile. So a range is checked through its element type, and std::optional, std::pair, std::tuple and std::variant through theirs.

Template Parameters
TThe value type, without cv-qualifiers.

Definition at line 77 of file graph.hpp.


The documentation for this struct was generated from the following file: