We are committed to provide service 24 X 7

Deals, Shopping, Training, Tools

Category: Boost Library

boost::any usage details

What is boost::any  : boost::any is a class from Boost::any Library. It provides the ability to store arbitrary information in a variable in C++. Advertisements What to include : Header File – “boost/any.hpp”. Frequently Asked: boost::any usage details boost::any questions What can be stored in boost::any : Anything that is copy constructable like, Built-in data …

boost::any usage detailsRead More

How to trim strings in C++ using Boost String Algorithm Library

In this tutorial we will discuss how to use trim algorithms from C++ Boost String Algorithm Library. Let’s learn them step by step, Boost String algorithm library provides different algorithms for string trimmings. Let’s first discuss the simple one i.e, What if we want to trim the string of white spaces from left side or …

How to trim strings in C++ using Boost String Algorithm LibraryRead More

C++ Date class – Tutorial & Example using Boost Date Time Library

In this example we will discuss how to represent Date as an object in c++ using Boost Library. C++ – Boost Library provides a type to represent date in Georgian Calendar i.e. Advertisements boost::gregorian::date Representing a Date with boost::gregorian::date type Let’s see how to create a Date Object and initialize it with a date 21’s March …

C++ Date class – Tutorial & Example using Boost Date Time LibraryRead More

How to Add / Subtract Days, Months or Years from a Date in C++

In this article we will discuss how to add or subtract days, months & Years from a date object. Add / Subtract Days from a Date For example, if current date is 21 March 2016. Then subtracting 100 days from this date will make the date 12 Dec 2015 Advertisements For this we will use …

How to Add / Subtract Days, Months or Years from a Date in C++Read More

Calculate Difference between 2 Dates in C++ using Boost Library

In this article we will discuss how to calculate difference between two dates and how to iterate over a date range using C++ Boost Date Time Library. date_duration Boost Date Time Library provides a duration type to represent the duration between two dates i.e. Advertisements boost::gregorian::date_duration With this date_duration object we can get the duration …

Calculate Difference between 2 Dates in C++ using Boost LibraryRead More

How to Convert String to Date in C++ using Boost Library

In this article we will discuss how to convert string to date objects in C++ using Boost Date Time Library. Boost Date Time Library provides boost::gregorian::date type for all the calendar date related operations. But many times we encounter scenarios where we need to convert parse date from some text and then convert date in string format …

How to Convert String to Date in C++ using Boost LibraryRead More

Get Current Date & Time in C++ Example using Boost Date Time Library

In this articlew we will discuss how to get Current Date & Time in C++ using Boost Date Time Library. Boost Date Time Library provides a type, Advertisements boost::posix_time::ptime to specify a particular time point. It includes a date and timestamp representing a specific time point. For example, Frequently Asked: How to Measure Execution Time …

Get Current Date & Time in C++ Example using Boost Date Time LibraryRead More

Convert a String to Uppercase or LowerCase in C++

In this article, we will discuss different ways to convert a string to upper case or lower case in C++. Table Of Contents Using STL using Boost String Algorithm Library Convert a String to Upper Case using STL C++ provides a function ::toupper() that converts a character to upper case character i.e. Advertisements int toupper ( …

Convert a String to Uppercase or LowerCase in C++Read More

Convert First Letter of each word of a String to Upper Case in C++

In this article we will discuss different ways to convert first letter of each word to upper case in a a given string i.e. Using STL algorithm Using Boost Filtered Iterator & Range Converting First Letter to Upper Case using STL Algorithm Used: Iterate over the characters in given string For each character check – …

Convert First Letter of each word of a String to Upper Case in C++Read More

Cart

Your Cart is Empty

Back To Shop