万本电子书0元读

万本电子书0元读

顶部广告

Boost C++ Application Development Cookbook - Second Edition电子书

售       价:¥

23人正在读 | 0人评论 9.8

作       者:Antony Polukhin

出  版  社:Packt Publishing

出版时间:2017-08-30

字       数:48.0万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Learn to build applications faster and better by leveraging the real power of Boost and C++ About This Book ? Learn to use the Boost libraries to simplify your application development ? Learn to develop high quality, fast and portable applications ? Learn the relations between Boost and C++11/C++4/C++17 Who This Book Is For This book is for developers looking to improve their knowledge of Boost and who would like to simplify their application development processes. Prior C++ knowledge and basic knowledge of the standard library is assumed. What You Will Learn ? Get familiar with new data types for everyday use ? Use smart pointers to manage resources ? Get to grips with compile-time computations and assertions ? Use Boost libraries for multithreading ? Learn about parallel execution of different task ? Perform common string-related tasks using Boost libraries ? Split all the processes, computations, and interactions to tasks and process them independently ? Learn the basics of working with graphs, stacktracing, testing and interprocess communications ? Explore different helper macros used to detect compiler, platform and Boost features In Detail If you want to take advantage of the real power of Boost and C++ and avoid the confusion about which library to use in which situation, then this book is for you. Beginning with the basics of Boost C++, you will move on to learn how the Boost libraries simplify application development. You will learn to convert data such as string to numbers, numbers to string, numbers to numbers and more. Managing resources will become a piece of cake. You’ll see what kind of work can be done at compile time and what Boost containers can do. You will learn everything for the development of high quality fast and portable applications. Write a program once and then you can use it on Linux, Windows, MacOS, Android operating systems. From manipulating images to graphs, directories, timers, files, networking – everyone will find an interesting topic. Be sure that knowledge from this book won’t get outdated, as more and more Boost libraries become part of the C++ Standard. Style and approach Clear step-by-step recipes that will help you take advantage of the real power of Boost.
目录展开

Title Page

Second Edition

Copyright

Boost C++ Application Development Cookbook

Second Edition

Credits

About the Author

About the Reviewer

www.PacktPub.com

Why subscribe?

Customer Feedback

Preface

What this book covers

What you need for this book

Who this book is for

Sections

Getting ready

How to do it…

How it works…

There's more…

See also

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

Starting to Write Your Application

Introduction

Getting configuration options

Getting ready

How to do it...

How it works...

There's more...

See also

Storing any value in a container/variable

Getting ready

How to do it...

How it works...

There's more...

See also

Storing multiple chosen types in a container/variable

Getting ready

How to do it...

How it works...

There's more...

See also

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

Getting ready

How to do it...

How it works...

There's more...

See also

Returning a value or flag where there is no value

Getting ready

How to do it...

How it works...

There's more...

See also

Returning an array from a function

Getting ready

How to do it...

How it works...

There's more...

See also

Combining multiple values into one

Getting ready

How to do it...

How it works...

There's more...

See also

Binding and reordering function parameters

Getting ready

How to do it...

How it works...

There's more...

See also

Getting a human-readable type name

Getting ready

How to do it

How it works...

There's more...

See also

Using the C++11 move emulation

Getting ready

How to do it...

How it works...

There's more...

See also

Making a noncopyable class

Getting ready

How to do it...

How it works...

See also

Making a noncopyable but movable class

Getting ready

How to do it...

How it works...

There's more...

See also

Using C++14 and C++11 algorithms

Getting ready

How to do it...

How it works...

There's more...

See also

Managing Resources

Introduction

Managing local pointers to classes that do not leave scope

Getting started

How to do it...

How it works...

There's more...

See also

Reference counting of pointers to classes used across functions

Getting ready

How to do it...

How it works...

There's more...

See also

Managing pointers to arrays that do not leave scope

Getting ready

How to do it...

How it works...

There's more...

See also

Reference counting of pointers to arrays used across functions

Getting ready

How to do it...

How it works...

There's more...

See also

Storing any functional objects in a variable

Getting ready

How to do it...

How it works...

There's more...

See also

Passing function pointer in a variable

Getting ready

How to do it...

How it works...

There's more...

See also

Passing C++11 lambda functions in a variable

Getting ready

How to do it...

There's more...

See also

Containers of pointers

Getting ready

How to do it...

How it works...

There's more...

See also

Do it at scope exit!

Getting ready

How to do it...

How it works...

There's more...

See also

Initializing the base class by the member of the derived class

Getting started

How to do it...

How it works...

There's more...

See also

Converting and Casting

Introduction

Converting strings to numbers

Getting ready

How to do it...

How it works...

There's more...

See also

Converting numbers to strings

Getting ready

How to do it...

How it works...

There's more...

See also

Converting numbers to numbers

Getting ready

How to do it...

How it works...

There's more...

See also

Converting user-defined types to/from strings

How to do it...

How it works...

There's more...

See also

Converting smart pointers

Getting started

How to do it...

How it works...

There's more...

See also

Casting polymorphic objects

Getting started

How to do it...

How it works...

There's more...

See also

Parsing simple input

Getting ready

How to do it...

How it works...

There's more...

See also

Parsing complex input

Getting ready

How to do it...

How it works...

There's more...

See also

Compile-Time Tricks

Introduction

Checking sizes at compile time

Getting ready

How to do it...

How it works...

There's more...

See also

Enabling function template usage for integral types

Getting ready

How to do it...

How it works...

There's more...

See also

Disabling function template usage for real types

Getting ready

How to do it...

How it works...

There's more...

See also

Creating a type from a number

Getting ready

How to do it...

How it works...

There's more...

See also

Implementing a type trait

Getting ready

How to do it...

How it works...

There's more...

See also

Selecting an optimal operator for a template parameter

Getting ready

How to do it...

How it works...

There's more...

See also

Getting a type of expression in C++03

Getting ready

How to do it...

How it works...

There's more...

See also

Multithreading

Introduction

Creating a thread of execution

Getting ready

How to do it...

How it works...

There's more...

See also

Syncing access to a common resource

Getting ready

How to do it...

How it works...

There's more...

See also

Fast access to common resource using atomics

Getting ready

How to do it...

How it works...

There's more...

See also

Creating work_queue class

Getting ready

How to do it...

How it works...

There's more...

See also

Multiple-readers-single-writer lock

Getting ready

How to do it...

How it works...

There's more...

See also

Creating variables that are unique per thread

Getting ready

How to do it...

How it works...

There's more...

See also

Interrupting a thread

Getting ready

How to do it...

How it works...

There's more...

See also

Manipulating a group of threads

Getting ready

How to do it...

How it works...

There's more...

See also

Initializing a shared variable safely

Getting ready

How to do it...

How it works...

There's more..

See also

Locking multiple mutexes

Getting ready

How to do it...

How it works...

There's more...

See also

Manipulating Tasks

Introduction

Before you start

Registering a task for an arbitrary data type processing

Getting ready

How to do it...

How it works...

There's more...

See also

Making timers and processing timer events as tasks

Getting ready

How to do it...

How it works...

There's more...

See also

Network communication as a task

Getting ready

How to do it...

How it works...

There's more...

See also

Accepting incoming connections

Getting ready

How to do it...

How it works...

There's more...

See also

Executing different tasks in parallel

Getting started

How to do it...

How it works...

There's more...

See also

Pipeline tasks processing

Getting ready

How to do it...

How it works...

There's more...

See also

Making a nonblocking barrier

Getting ready

How to do it...

How it works...

There's more...

See also

Storing an exception and making a task from it

Getting ready

How to do it...

How it works...

There's more...

See also

Getting and processing system signals as tasks

Getting ready

How to do it...

How it works...

There is more...

See also

Manipulating Strings

Introduction

Changing cases and case-insensitive comparison

Getting ready

How to do it...

How it works...

There's more...

See also

Matching strings using regular expressions

Getting started

How to do it...

How it works...

There's more...

See also

Searching and replacing strings using regular expressions

Getting ready

How to do it...

How it works...

There's more...

See also

Formatting strings using safe printf-like functions

Getting ready

How to do it...

How it works...

There's more...

See also

Replacing and erasing strings

Getting ready

How to do it...

How it works...

There's more...

See also

Representing a string with two iterators

Getting ready

How to do it...

How it works...

There's more...

See also

Using a reference to string type

Getting ready

How to do it...

How it works...

There's more...

See also

Metaprogramming

Introduction

Using type vector of types

Getting ready

How to do it...

How it works...

There's more...

See also

Manipulating a vector of types

Getting ready

How to do it...

How it works...

There's more...

See also

Getting a function's result type at compile time

Getting ready

How to do it...

How it works...

There's more...

See also

Making a higher-order metafunction

Getting ready

How to do it...

How it works...

There's more...

See also

Evaluating metafunctions lazily

Getting ready

How to do it...

How it works...

There's more...

See also...

Converting all the tuple elements to strings

Getting ready

How to do it...

How it works...

There's more...

See also

Splitting tuples

Getting ready

How to do it...

How it works...

There's more...

See also

Manipulating heterogeneous containers in C++14

Getting ready

How to do it...

How it works...

There's more...

See also

Containers

Introduction

Storing a few elements in a sequence container

Getting ready

How to do it...

How it works...

There's more...

See also

Storing at most N elements in the sequence container

Getting ready

How to do it...

How it works...

There's more...

See also

Comparing strings in an ultra-fast manner

Getting ready

How to do it...

How it works...

There's more...

See also

Using an unordered set and map

Getting ready

How to do it...

How it works...

There's more...

See also

Making a map, where value is also a key

Getting ready

How to do it...

How it works...

There's more...

See also

Using multi-index containers

Getting ready

How to do it...

How it works...

There's more...

See also

Getting benefits of a single linked list and memory pool

Getting ready

How to do it...

How it works...

There's more...

See also

Using flat associative containers

Getting ready

How to do it...

How it works...

There's more...

See also

Gathering Platform and Compiler Information

Introduction

Detecting an OS and compiler

Getting ready

How to do it...

How it works...

There's more...

See also

Detecting int128 support

Getting ready

How to do it...

How it works...

There's more...

See also

Detecting and bypassing disabled RTTI

Getting ready

How to do it...

How it works...

There's more...

See also

Writing metafunctions using simpler methods

Getting ready

How to do it...

How it works...

There's more...

See also

Reducing code size and increasing performance of user-defined types (UDTs) in C++11

Getting ready

How to do it...

How it works...

There's more...

See also

The portable way to export and import functions and classes

Getting ready

How to do it...

How it works...

There's more...

See also

Detecting the Boost version and getting latest features

Getting ready

How to do it...

How it works...

There's more...

See also

Working with the System

Introduction

Listing files in a directory

Getting ready

How to do it...

How it works...

There's more...

See also

Erasing and creating files and directories

Getting ready

How to do it...

How it works...

There's more...

See also

Writing and using plugins

Getting ready

How to do it...

How it works...

There's more...

See also

Getting backtrace – current call sequence

Getting started

How to do it...

How it works...

There's more...

See also

Passing data quickly from one process to another

Getting ready

How to do it...

How it works...

There's more...

See also

Syncing interprocess communications

Getting ready

How to do it...

How it works...

There's more...

See also

Using pointers in a shared memory

Getting ready

How to do it...

How it works...

There's more...

See also

The fastest way to read files

Getting ready

How to do it...

How it works...

There's more...

See also

Coroutines - saving the state and postponing the execution

Getting ready

How to do it...

How it works...

There's more...

See also

Scratching the Tip of the Iceberg

Introduction

Working with graphs

Getting ready

How to do it...

How it works...

There's more...

See also

Visualizing graphs

Getting ready

How to do it...

How it works...

There's more...

See also

Using a true random number generator

Getting started

How to do it...

How it works...

There's more...

See also

Using portable math functions

Getting ready

How to do it...

How it works...

There's more...

See also

Writing test cases

Getting ready

How to do it...

How it works...

There's more...

See also

Combining multiple test cases in one test module

Getting ready

How to do it...

How it works...

There's more...

See also

Manipulating images

Getting ready

How to do it...

How it works...

There's more...

See also

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部