C++11應用常用類庫和模板:LibCXX
這是一個C ++11的應用類和模板庫,提供了高級的應用框架類和一些 Linux 專有的特性封裝。具體如下:
-
C++ classes for implementing Linux kernel-specific interfaces, such as event, timer, and signal file descriptors.
-
Templates for reference-counted objects that offer a much richer set of functionality than
shared_ptr
. Thex::ref
,x::ptr
,x::const_ref
, andx::const_ptr
templates implement semantic concepts that are analogous to the conceptual differences between aiterator
andconst_iterator
, as well as a native pointer and a native reference, in the C++ language.The reference-counted object implementation is based on a virtual object superclass root, enabling proper support of multiple inheritance in the context of a reference-counted object-based framework; as well as destructor callbacks that implement useful design patterns where “something” needs to be done after “something else”, such as a request or a message of some kind, gets processed, without “something else” really caring what “something” is.
-
Weak containers, a further extension of this reference-counted object framework, and reference-counted thread objects; as well as a number of high-level design patterns for multi-threaded applications, based on the C++11 thread library.
-
HTTP client and server classes; including SSL/TLS, with a reference-counted GnuTLS library classes.