Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Boost.Range Library

via CodeSignal

Overview

This course will introduce you to the Boost.Range library, a powerful toolset for range operations, iterators, and range-based algorithms. You will learn to utilize this library for writing cleaner and more efficient C++ code.

Syllabus

  • Lesson 1: Introduction to Boost.Range
    • Cube the Elements in the Range
    • Transform Numbers in a Vector
    • Filtering and Reversing a Set using Boost.Range
    • Calculate Number of Elements in Filtered Range with Boost::Distance
    • Filter and Display Unique Elements with Boost.Range
    • Using boost::adaptors::sliced to Extract Elements from a Vector
  • Lesson 2: Range Algorithms in Boost.Range Library
    • Count Odd Numbers Using `boost::count_if`
    • Applying boost::for_each to Modify and Print Vector Elements
    • Concatenate Strings Using Boost Accumulate
    • Search for the First Occurrence of a Value in a Vector Using boost::find
    • Sort a Vector Using boost::sort
    • Sort a Map Using boost::sort with a Custom Comparator
    • Partition Vector Using std::partition
  • Lesson 3: Modifying Ranges In Place with Boost.Range
    • Modify Element Addition to Use push_front in Boost.Range
    • Modifying a Vector In-Place Using Boost Range
    • Merging Vectors Using boost::range::insert
  • Lesson 4: Pipe Operator in Boost.Range
    • Text Processing with Boost Range Pipes
    • Shopping Price List Modification with Discounts
    • Chaining Range Filters
    • Calculate Average and Sort Filtered Discounts
  • Lesson 5: Solving a Comprehensive Problem with Ranges
    • Adjust Filtering Condition to Houses Above 60,000
    • Filter and Calculate Average of Large Land Parcels
    • Applying Salary Increases Using Boost.Range

Reviews

Start your review of Boost.Range Library

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.