Go beyond C ++ standard library: boost library guide: boost library introduction-Input/Output

Source: Internet
Author: User
Input/output boost. Assign

The assign helps to store the values of a sequence into the container. It provides a simple value assignment method by reloading the comma and parentheses operators (operators used for function calls. This library is particularly useful not only for Prototyping-style code, but also for its features, because the code generated by using this library is very readable. You can also use the list_of library to create an anonymous array as needed.

The author of assign is Thorsten Ottosen.

Boost. filesystem

The filesystem Library provides portable operations on paths, directories, and files. The high-level abstraction provided by it allows c ++ programmers to write script-like operations that can often be implemented in other languages. This library provides a very convenient Algorithm for fully traversing directories and files. Writing code that can be migrated between platforms with different file systems is originally very difficult, and with the help of this library, it has become practical.

The filesystem author is beman Dawes.

Boost. Format

This Library provides the function to format parameters according to the format string, similar to printf, but it is type-safe. The most controversial aspect of printf and similar formatting functions is that they are inherently dangerous, because the types specified by the formatting string cannot be consistent with the actual parameters. In addition to eliminating such inconsistencies, format also allows custom formatting for user-defined types [4].

The author of format is Samuel krempp.

Boost. io_state_savers

The io_state_savers library can be used to save the status of the iostream object and restore it later. It also revokes any status that may occur during this period. Many operations change the status of the stream they operate permanently. Manual resetting of these statuses is not only inconvenient but also prone to errors. This library includes many status savers used to control the stream (control flags), precision, width, and exception mask (exception masks) stream localization (locale) and other things.

The author of io_state_savers is daryle Walker.

Boost. serialization

This database allows any c ++ data structure to be saved to an archives file and recovered from the file later. For example, an archive file can be a text file or an XML file. Boost. serialization is highly portable and provides a series of functions, such as versioning of classes, serialization of C ++ standard library classes, and serialization of shared data.

The author of serialization is Robert Ramey.



[4] You cannot use ellipsis to format a variable number of parameters.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.