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

  • SEARCH
  • Home
  • 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 4614004
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:38:07+00:00 2026-05-22T01:38:07+00:00

I downloaded the STL source code from http://www.sgi.com/tech/stl/download.html , but it only has the

  • 0

I downloaded the STL source code from http://www.sgi.com/tech/stl/download.html , but it only has the .h for the function declaration. Where can I download the .cpp files to read the actual implementation?

For example, in the stl_multimap.h or in stl_map.h, it has:

template <class _Key, class _Tp, class _Compare, class _Alloc>
inline void swap(multimap<_Key,_Tp,_Compare,_Alloc>& __x, 
                 multimap<_Key,_Tp,_Compare,_Alloc>& __y) {
  __x.swap(__y);
}

I want to know the actual implementation of the swap as in

__x.swap(__y);

I don’t see where the actual code for swap is. In here, it just calls itself.

  • 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-22T01:38:07+00:00Added an answer on May 22, 2026 at 1:38 am

    The .h files contains the implementations. Many of the headers on that page are just wrappers around other headers or provide typedefs, but if you look at a file like stl_set.h, you will see that it has all the definitions of functions for the set class.

    Even the page itself states that it is a header-only library, which means that the implementations are included in the headers.

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

Sidebar

Related Questions

I just downloaded the STL source code and I noticed all the definition for
I downloaded the OAuthDemo Android App from www.marakana.com. It works fine with their included
I downloaded this plugin: http://code.google.com/p/jquery-autocomplete/ I write this: $(document).ready(function () { $('#txtStoryTags').autocomplete('@Url.Action(GetTags, Thread)', {
I downloaded sqlite from http://www.sqlite.org/sqlite-autoconf-3070701.tar.gz How can I compile sqlite with icu ?
I downloaded the lasted stable ruby source code from the ruby website (1.9.2-p180) and
Downloaded ASE from google code, and was looking through tutorials, and available scripts. I
I downloaded Java source code of some project that works with Maven. After checking
I downloaded the class files and demo program here: http://github.com/matej/MBProgressHUD When I try to
I downloaded a copy of servlet-api.jar from java2s.com. How do I know what version
I downloaded, setup all the gems for http://github.com/bestbuyremix/BBYIDX Now when I type: rails script/server

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.