knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
PrefixProbe.cpp
Go to the documentation of this file.
1 //
2 // Created by daniel on 31.07.23.
3 //
4 
5 #include "knowrob/semweb/PrefixProbe.h"
6 
7 namespace knowrob {
8  bool operator<(PrefixProbe a, std::string_view b) { return a.prefix < b.substr(0, a.prefix.size()); }
9  bool operator<(std::string_view a, PrefixProbe b) { return a.substr(0, b.prefix.size()) < b.prefix; }
10 } // knowrob
bool operator<(PrefixProbe a, std::string_view b)
Definition: PrefixProbe.cpp:8
std::string_view prefix
Definition: PrefixProbe.h:11