Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 959969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:06:28+00:00 2026-05-16T01:06:28+00:00

What C++ library provides Data structures API that match the ones provided by java.util.*

  • 0

What C++ library provides Data structures API that match the ones provided by java.util.* as much as possible.
Specifically, I am looking for the following DS and following Utility Functions:-

**DS**: Priority Queue, HashMap, TreeMap, HashSet, 
    TreeSet, ArrayList, String most importantly. 
**Utility**: Arrays.* , Collections.*, Regex, FileHandling etc.
    and other converters and algorithms like Binary Search, Sort, NthElement etc.

My guess is that Boost may be able to do all these, but I find it too bulky and is non-trivial to add it into a project, especially, when I want to quickly get started on something and when although the code would require all these data structures, the code overall is not going to be that huge to warrant spending lot of effort in setting up libraries.

An example would be if someone had to write a C++ program to do Network Flow Algorithm for a school assignment. I am sure I could come up with better examples, but this one’s on top of my head.

Thanks
Ajay

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T01:06:28+00:00Added an answer on May 16, 2026 at 1:06 am

    All of those containers are available in some form in the SC++L:

    • Priority Queue std::priority_queue (this is actually a container adapter, rather than a container itself – that is, it works “on top of” another container, usually std::vector or std::deque.
    • HashMap std::unordered_map (or if your compiler doesn’t support C++0x, there’s boost::unordered_map)
    • TreeMap std::map
    • HashSet and TreeSet are basically the same as HashMap and TreeMap, except the key and value are the same thing. However, there’s also std::unordered_set and std::set.
    • ArrayList is the venerable std::vector
    • String is the venerable std::string. Many of the functions you get in the Java String class can be found in the Boost.Strings library.

    Do not be afraid of setting up boost. In my experience, you set it up once and then use it over and over again in all of your projects. Also, all of the libraries that I mentioned above are header-only libraries. That means, you don’t actually need to build/install any libraries, just references the headers.

    For the other things, I’m not so sure, since I don’t know Java all that well. At the end of the day, you’re not going to find a library that’s “just like Java, except written in C++” because that would be kind of pointless. A C++ library is written to play to C++’s strength, a Java library is written to play to Java’s strengths. To try and shoehorn a library designed for one language into another doesn’t make sense to me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for a C library that provides generic collection data structures such as
I am finding a commercial C++ library that provides licensing API to use within
Does anyone know of a Java library that provides support for the ${var} style
I'm looking for a data structure like com.google.common.collect.SortedSetMultimap which additionally implements the java.util.NavigableMap interface.
I have a C++ library that provides various classes for managing data. I have
I am currently designing a class library that will provide data to a web
Does anyone know a Library which provides a Thread.sleep() for Java which has an
is there any javascript library that provides me with a custom event as soon
I was wondering if there is a well C++ library that provides a file
I'm curious about the possibility of having a .NET class library that provides a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.