![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cValT.h>
Static Public Member Functions | |
template<class TYPE > | |
static void | Swap (TYPE &a, TYPE &b) noexcept |
template<class TYPE > | |
static COMPARE_t | Compare (const TYPE &a, const TYPE &b) noexcept |
template<> | |
COMPARE_t | Compare (const cTimeFile &t1, const cTimeFile &t2) |
Helper functions for an arbitrary value/object type in memory. We may compare these. Similar to System.IComparable in .NET
|
inlinestatic |
Overload/implementation of cValT::Compare Use cFileStatus::isSameChangeTime for FAT32 ~2 second like _WIN32 CompareFileTime() ?
|
inlinestaticnoexcept |
compare 2 TYPE values. Similar to .NET IComparable but for any types. Overload this template for any specific TYPE Compare. obviously TYPE must also support >. We assume all types already support ==.
swap 2 values. similar to cMem::Swap() but uses the intrinsic = operator. dangerous for complex struct that has pointers and such. may not do a 'deep' copy. assume TYPE has a safe overloaded = operator. Overload this template for any specific TYPE Swaps.