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

From KlayGE
Jump to: navigation, search
Line 5: Line 5:
 
*'''Chrono'''
 
*'''Chrono'''
 
*Date Time(没有直接使用,VC11+不使用)
 
*Date Time(没有直接使用,VC11+不使用)
*Filesystem(在VC11+中可以用TR2代替)
+
*Filesystem(在VC11+中可以用Filesystem TS的代替)
 
*Program Options(仅用于[[工具集]])
 
*Program Options(仅用于[[工具集]])
 
*'''Regex'''(仅用于[[工具集]])
 
*'''Regex'''(仅用于[[工具集]])
Line 13: Line 13:
 
只有头文件的boost库:
 
只有头文件的boost库:
 
*Algorithm/string
 
*Algorithm/string
*Any
+
*Any (Library fundamentals TS)
 
*'''Array'''
 
*'''Array'''
 
*Assert
 
*Assert
Line 23: Line 23:
 
*Functional/Hash
 
*Functional/Hash
 
*'''Integer'''
 
*'''Integer'''
*Lexical Cast
+
*Lexical Cast (Library fundamentals TS)
 
*Lock free
 
*Lock free
 
*'''Member Function'''
 
*'''Member Function'''
 
*'''Move'''
 
*'''Move'''
 
*Operators
 
*Operators
*Optional
+
*Optional (Library fundamentals TS)
 
*'''Random'''
 
*'''Random'''
 
*'''Ref'''
 
*'''Ref'''

Revision as of 22:34, 10 June 2015

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

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

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

只有头文件的boost库:

  • Algorithm/string
  • Any (Library fundamentals TS)
  • Array
  • Assert
  • Bind
  • Circular Buffer
  • Container/flat_map
  • Foreach
  • Function
  • Functional/Hash
  • Integer
  • Lexical Cast (Library fundamentals TS)
  • Lock free
  • Member Function
  • Move
  • Operators
  • Optional (Library fundamentals TS)
  • Random
  • Ref
  • Signals2
  • Smart Ptr
  • Static Assert
  • Tuple
  • Type Traits
  • Typeof
  • Unordered
  • Utility/checked_delete
  • Utility/noncopyable
  • Utility/result_of

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