std1.0.0-beta-7 SafeC docs

std :: cmp

Trait std::Order

#include <std/cmp.h> source

trait Order {
    int cmp(const &Elem_ a, const &Elem_ b) const;
}

Required methods

ยงint cmp(const &Elem_ a, const &Elem_ b) constsource

<0 if a sorts before b, 0 if they are equivalent, >0 if after.