06 2019 档案

摘要:Boost Variant resembles union. You can store values of different types in a boost::variant. 1. boost::variant is a template, at least one parameter mu 阅读全文
posted @ 2019-06-20 19:30 c++11 阅读(592) 评论(0) 推荐(0)
摘要:Boost Any provides the class boost::any which like JavaScript variables can store arbitrary types of information. Variables of type boost::any are not 阅读全文
posted @ 2019-06-20 14:07 c++11 阅读(393) 评论(0) 推荐(0)
摘要:boost::tuple is a generalized version of std::pair. While std::pair can only store exactly two values, boost::tuple lets you choose how many values to 阅读全文
posted @ 2019-06-20 11:53 c++11 阅读(264) 评论(0) 推荐(0)
摘要:boost::optional can be used for optional return values. 1. optional return values with boost::optional boost::optional is a template that must be inst 阅读全文
posted @ 2019-06-19 17:12 c++11 阅读(1815) 评论(0) 推荐(1)
摘要:Boost Container provides additional advantages: (1) The interface of the containers resemble those of the containers in the C++11 standard library. (2 阅读全文
posted @ 2019-06-19 15:44 c++11 阅读(1068) 评论(0) 推荐(0)
摘要:Boost MultiArray is a library that simplifies using arrays with multiple dimensions. 1. boost::multi_array is a template expecting two parameters: The 阅读全文
posted @ 2019-06-19 12:13 c++11 阅读(572) 评论(0) 推荐(0)
摘要:1. the advantages of intrusive container (1) Intrusive containers don't allocate memory dynamically. A call to push_back() dosen't lead to a dynamic a 阅读全文
posted @ 2019-06-14 19:14 c++11 阅读(431) 评论(0) 推荐(0)
摘要:1. using boost::heap::priority_queue In general this class behaves like std::priority_queue, except it allows you to iterate over elements. The order 阅读全文
posted @ 2019-06-14 18:57 c++11 阅读(1091) 评论(0) 推荐(0)
摘要:1. circular buffer has two fundamental properties: (1): The capacity of the circular buffer is constant and set by you. The capacity doesn't change au 阅读全文
posted @ 2019-06-14 16:01 c++11 阅读(1420) 评论(0) 推荐(0)
摘要:Boost.Unordered provides the classes boost::unordered_set, boost::unordered_multiset, boost::unordered_map, and boost::unordered_multimap. These class 阅读全文
posted @ 2019-06-13 19:36 c++11 阅读(375) 评论(0) 推荐(0)
摘要:boost::array is similar to std::array, which was added to the standard library with C++11. With boost::array, an array can be created that exhibits th 阅读全文
posted @ 2019-06-13 16:02 c++11 阅读(449) 评论(0) 推荐(0)
摘要:The library Boost.Bimap is based on Boost.MultiIndex and provides a container that can be used immediately without being definded first. The container 阅读全文
posted @ 2019-06-13 15:38 c++11 阅读(778) 评论(0) 推荐(0)
摘要:Boost.MultiIndex makes it possible to define containers that support an arbitrary number of interfaces. While std::vector provides an interface that s 阅读全文
posted @ 2019-06-11 16:46 c++11 阅读(940) 评论(0) 推荐(0)
摘要:Boost.Regex provides three different functions to search for regular expressions 1. regex_match boost::regex_match() compares a string with a regular 阅读全文
posted @ 2019-06-05 18:19 c++11 阅读(475) 评论(0) 推荐(0)
摘要:Boost.Format provides a class called boost::format, wich is defined in boost/format.hpp Similar to std::printf(), a string containing special characte 阅读全文
posted @ 2019-06-05 11:58 c++11 阅读(477) 评论(0) 推荐(0)
摘要:Boost.LexicalCast provides a cast operator, boost::lexical_cast, that can covert numberes from strings to numeric types like int or double. boost::lex 阅读全文
posted @ 2019-06-05 11:15 c++11 阅读(208) 评论(0) 推荐(0)
摘要:The Boost.StringAlgorithms library provides many free-standing functions for string manipulation. 1. converting strings to uppercase The function boos 阅读全文
posted @ 2019-06-04 19:13 c++11 阅读(1169) 评论(0) 推荐(0)