📄 vcl_rel_ops.not
字号:
#ifndef vcl_rel_ops_h_
#define vcl_rel_ops_h_
/*
fsm
*/
// PLEASE DON'T USE THIS HEADER FILE. If you are using a class
// type, A, which provides operator== but not operator!= you
// can do
// #include <utility>
// using std::operator!=;
//
// before you do
// if (x != y) { ...
//
// but if one reflects on it dispassionately, it should be clear
// that this solution is much more verbose than the obvious one,
// which is to just write
// if (!(x == y)) { ...
//
// instead. If you find you need operator!= a lot, it is better
// to provide an operator!= near the declaration of class A, to
// save the user the trouble of #including <utility> and typing
// a `using' statement.
//
// See also http://gcc.gnu.org/ml/libstdc++/2001-01/msg00247.html
#include <vcl_deprecated_header.h>
#include "vcl_compiler.h"
#if !VCL_USE_NATIVE_STL
# include "emulation/vcl_rel_ops.h"
#elif defined(VCL_GCC) && defined(VCL_CXX_HAS_HEADER_FUNCTIONAL)
# include "vcl_utility.h"
# if defined(VCL_GCC_30)
using std::rel_ops::operator!=;
using std::rel_ops::operator>;
using std::rel_ops::operator<=;
using std::rel_ops::operator>=;
# else
using std::operator!=;
using std::operator>;
using std::operator<=;
using std::operator>=;
# endif
#elif defined(VCL_SGI_CC)
# include "vcl_utility.h"
using std::operator!=;
using std::operator>;
using std::operator<=;
using std::operator>=;
#else // -------------------- ISO
# include "vcl_utility.h"
using std::rel_ops::operator!=;
using std::rel_ops::operator>;
using std::rel_ops::operator<=;
using std::rel_ops::operator>=;
#endif
// instantiation macro for compilers that need it.
#define VCL_REL_OPS_INSTANTIATE(T) \
VCL_INSTANTIATE_INLINE(bool operator != (T const &, T const &)); \
VCL_INSTANTIATE_INLINE(bool operator > (T const &, T const &)); \
VCL_INSTANTIATE_INLINE(bool operator <= (T const &, T const &)); \
VCL_INSTANTIATE_INLINE(bool operator >= (T const &, T const &))
#endif // vcl_rel_ops_h_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -