Boost C++ 库

“……世界上最受尊敬和设计最精良的 C++ 库项目之一。” Herb SutterAndrei Alexandrescu, C++ 编码标准

PrevUpHomeNext

结构体模板 has_move_emulation_enabled

boost::has_move_emulation_enabled

概要

// In header: <boost/move/core.hpp>

template<typename T> 
struct has_move_emulation_enabled {

  // public data members
  static const bool value;
};

描述

如果 T 被标记为 BOOST_MOVABLE_BUT_NOT_COPYABLE 或 BOOST_COPYABLE_AND_MOVABLE 并且平台不支持右值引用,则此 trait 在编译时产生一个 true 的布尔值。否则为 False。


PrevUpHomeNext