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 8025323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:07:47+00:00 2026-06-04T23:07:47+00:00

I have gone through some tutorials on CList, which seems to be much more

  • 0

I have gone through some tutorials on CList, which seems to be much more feature rich than std::list of C++ STL. Especially what caught my attention was that I could search a CList by a value and it would return a position (assuming all values are unique, which is always true in my case). I am trying to use a list of boost smart pointers. Querying a list with the value of the pointer or quickly changing the position value to jump to an element would be really handy to me. Is there any specialized list library that allows me to do that?

Thanks in advance!

  • 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-06-04T23:07:49+00:00Added an answer on June 4, 2026 at 11:07 pm

    I wouldn’t necessary call MFC more feature rich over STL but it certainly favors the design of member methods and inheritance over free functions and template interfaces.

    You can search elements using the functions in algorithm such as std::find, std::find_if, etc which work generically on STL containers like vector as well.

    For your specific case you might want to do something like this:

    #include <list>
    #include <algorithm>
    
    typedef std::list<int> IntList;
    int nums[] = { 1,2,3,4,5,6,7,8,9 };
    IntList numbers(nums, nums + sizeof(nums) / sizeof(int));
    IntList::const_iterator found = std::find(numbers.begin(), numbers.end(), 7);
    if (found != numbers.end())
        ;// then found is an iterator to the element containing the value 7
    else
        ;// didn't find
    

    Now as far as getting MFC like behavior on Linux I would recommend Qt. It’s a massive cross-platform framework which has lots of useful stuff. Better yet it’s open source and free and comes with it’s own IDE called QtCreator which isn’t half bad either.

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

Sidebar

Related Questions

I am new to pthread and I have gone through some tutorials. The tutorials
I have gone through some other answers, but cannot get the solution to my
I have already gone through some codings, and I found some interrupts in uploading.
I have gone through the tutorials of using network resources in android. But I
I have gone through with some of the sample examples of blackberry. And in
I'm new to iPhone development.I have already gone through some of the exploring pages
While attempting to build a website, i have gone through many online tutorials. Thanks
I have gone through a video tutorial regarding Asp.net Membership Provider in which he
I don't want my class to be decompiled. I have gone through some of
I have gone through many related SO threads and got some basic info. Already

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.