Difference between revisions of "使用到的boost库"

From KlayGE
Jump to: navigation, search
Line 15: Line 15:
 
*Algorithm/string
 
*Algorithm/string
 
*Any (Library fundamentals TS)
 
*Any (Library fundamentals TS)
*'''Array'''
 
 
*Assert
 
*Assert
 
*'''Bind'''
 
*'''Bind'''
Line 23: Line 22:
 
*'''Function'''
 
*'''Function'''
 
*Functional/Hash
 
*Functional/Hash
*'''Integer'''
 
 
*Lexical Cast
 
*Lexical Cast
 
*Lock free
 
*Lock free
 
*'''Member Function'''
 
*'''Member Function'''
*'''Move'''
 
 
*Operators
 
*Operators
 
*Optional (Library fundamentals TS)
 
*Optional (Library fundamentals TS)
*'''Random'''
 
 
*'''Ref'''
 
*'''Ref'''
 
*Signals2
 
*Signals2
 
*'''Smart Ptr'''
 
*'''Smart Ptr'''
*'''Static Assert'''
 
*'''Tuple'''
 
*'''Type Traits'''
 
*'''Typeof'''
 
*'''Unordered'''
 
 
*Utility/checked_delete
 
*Utility/checked_delete
 
*Utility/noncopyable
 
*Utility/noncopyable
*'''Utility/result_of'''
 
  
 
标记为粗体的可以用C++11的功能代替。随着支持C++11的编译器的普及,这些库都会切换到[[使用到的C++11特性|C++11]]。除非迫不得已才用boost的。
 
标记为粗体的可以用C++11的功能代替。随着支持C++11的编译器的普及,这些库都会切换到[[使用到的C++11特性|C++11]]。除非迫不得已才用boost的。
  
 
[[en:Used boost libraries]]
 
[[en:Used boost libraries]]

Revision as of 23:12, 5 July 2015

KlayGE的很多代码都依赖于boost。以下列出使用到boost中的各个部分。

需要编译才能使用的boost库:

  • Atomic
  • Chrono
  • Date Time(没有直接使用,VC11+不使用)
  • Filesystem(在VC11+中可以用Filesystem TS的代替)
  • Program Options(仅用于工具集
  • Regex(仅用于工具集
  • System
  • Test (仅用于测试)
  • Thread

只有头文件的boost库:

  • Algorithm/string
  • Any (Library fundamentals TS)
  • Assert
  • Bind
  • Circular Buffer
  • Container/flat_map
  • Foreach
  • Function
  • Functional/Hash
  • Lexical Cast
  • Lock free
  • Member Function
  • Operators
  • Optional (Library fundamentals TS)
  • Ref
  • Signals2
  • Smart Ptr
  • Utility/checked_delete
  • Utility/noncopyable

标记为粗体的可以用C++11的功能代替。随着支持C++11的编译器的普及,这些库都会切换到C++11。除非迫不得已才用boost的。