Antony polukhin boost c++ application development cookbook

348 706 3
Antony polukhin   boost c++ application development cookbook

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Đây là quyển sách tiếng anh về lĩnh vực công nghệ thông tin cho sinh viên và những ai có đam mê. Quyển sách này trình về lý thuyết ,phương pháp lập trình cho ngôn ngữ C và C++.

[...]... considered for inclusion in the next standard of C++ The current boost: :optional implementation cannot work with C++1 1 rvalue references; however, there are some patches proposed to fix that The C++1 1 standard does not include the Boost. Optional class; however, it is currently being reviewed for inclusion in the next C++ standard or in C++1 4 24 Chapter 1 See also ff Boost' s official documentation contains more... available solutions Boost C++ Application Development Cookbook starts out teaching the basics of the Boost libraries that are now mostly part of C++1 1 and leave no chance for memory leaks Managing resources will become a piece of cake We'll see what kind of work can be done at compile time and what Boost containers can do Do you think multithreading is a burden? Not with Boost Do you think writing portable... count: 20 There's more The C++1 1 standard adopted many Boost libraries; however, you won't find Boost ProgramOptions in it See also ff Boost' s official documentation contains many more examples and shows more advanced features of Boost. ProgramOptions, such as position-dependent options, nonconventional syntax, and more This is available at the following link: http://www .boost. org/doc/libs/1_53_0/doc/html/program_options... working with the header-only library Basic knowledge of C++ is all you need for this recipe How to do it In such cases, Boost offers a solution, the Boost. Any library, which has an even better syntax: #include #include #include #include 13 Starting to Write Your Application int main() { std::vector some_values; some_values.push_back(10); const... knowledge of C++ is all you need for this recipe How to do it Let me introduce the Boost. Variant library to you 1 The Boost. Variant library can store any of the types specified at compile time; it also manages in-place construction/destruction and doesn't even require the C++1 1 standard: #include #include #include #include int main() { typedef boost: :variant . alt="" Boost C++ Application Development Cookbook Over 80 practical, task-based recipes to create applications using Boost libraries Antony Polukhin . available solutions. Boost C++ Application Development Cookbook starts out teaching the basics of the Boost libraries that are now mostly part of C++1 1 and leave

Ngày đăng: 19/03/2014, 14:05

Từ khóa liên quan

Mục lục

  • Cover

  • Copyright

  • Credits

  • About the Author

  • About the Reviewers

  • www.PacktPub.com

  • Table of Contents

  • Preface

  • Chapter 1: Starting to Write Your Application

    • Introduction

    • Getting configuration options

    • Storing any value in a container/variable

    • Storing multiple chosen types in a variable/container

    • Using a safer way to work with a container that stores multiple chosen types

    • Returning a value or flag where there is no value

    • Returning an array from a function

    • Combining multiple values into one

    • Reordering the parameters of function

    • Binding a value as a function parameter

    • Using the C++11 move emulation

    • Making a noncopyable class

Tài liệu cùng người dùng

Tài liệu liên quan