NCBI C++ ToolKit
Public Member Functions | List of all members
SStringLess< TComp > Struct Template Reference

Search Toolkit Book for SStringLess

string comparison using integers instead of const char* this is coded in C++ and beats an assembler-based memcmp() this algorithm makes no adjustment for memory alignment and may be either slower or illegal on some platforms. More...

#include <algo/text/text_util.hpp>

Public Member Functions

bool operator() (const string &s1, const string &s2) const
 

Detailed Description

template<typename TComp>
struct SStringLess< TComp >

string comparison using integers instead of const char* this is coded in C++ and beats an assembler-based memcmp() this algorithm makes no adjustment for memory alignment and may be either slower or illegal on some platforms.

Definition at line 52 of file text_util.hpp.

Member Function Documentation

◆ operator()()

template<typename TComp >
bool SStringLess< TComp >::operator() ( const string s1,
const string s2 
) const
inline

Definition at line 54 of file text_util.hpp.

References pc1, and pc2.


The documentation for this struct was generated from the following file:
Modified on Wed Sep 04 15:05:32 2024 by modify_doxy.py rev. 669887