Loading...
Searching...
No Matches
by::subLess Struct Reference

Child ordering: array indices numerically, names lexicographically. More...

#include <stela.hpp>

Public Member Functions

nbool operator() (const std::string &l, const std::string &r) const
 

Static Public Member Functions

static nbool isIdx (const std::string &it)
 

Detailed Description

Child ordering: array indices numerically, names lexicographically.

arrStela names its elements "0", "1", ... "10", which plain std::less would order as "0", "1", "10", "2". A NAME token can never begin with a digit, so an all-digit key only ever comes from an array element; ordering those apart from names is therefore collision-free and leaves the order of ordinary named children untouched.


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