ZFFramework
 
Loading...
Searching...
No Matches
zfstl_define.h File Reference

stl wrapper, note it's internal use only More...

#include "../ZFCoreDef.h"

Go to the source code of this file.

Macros

#define zfstlsize
 size_t wrapper
 

Detailed Description

stl wrapper, note it's internal use only

Macro Definition Documentation

◆ zfstlsize

#define zfstlsize

size_t wrapper

take good care of that, zfindex is not ensured same as size_t, so it is not ensured that zfindexMax() is equal to string::npos, e.g.:

zfindex n = string::npos;
zfbool b0 = (n == string::npos); // zftrue
zfbool b1 = (zfindexMax() == string::npos); // not ensured
size_t t = 0;
zfindex t2 = t - 1;
zfbool b2 = (t2 == zfindexMax()); // not ensured
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
_ZFT_t_zfindex zfindex
similar to size_t, used for index and size only
Definition ZFCoreTypeDef_CoreType.h:154
#define zfindexMax()
(zfindex)-1, indicate a max index value, see zfindex
Definition ZFCoreTypeDef_CoreType.h:159

use explicit conversion is recommended