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 8777701

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:20:26+00:00 2026-06-13T19:20:26+00:00

I have found a function in a library in c++ and I can’t tell

  • 0

I have found a function in a library in c++ and I can’t tell the types of the parameters being passed in and just so my knowledge and understanding is complete it would be good for me to know.

To me they look like arrays of function pointers but without the *, am I right in my assumption?

template < typename _Tp , size_t _Nm > 
inline void swap ( _Tp ( & __a ) [ _Nm ] , _Tp ( & __b ) [ _Nm ] )
  • 0 0 Answers
  • 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-13T19:20:27+00:00Added an answer on June 13, 2026 at 7:20 pm

    The types of both arguments are the same. They are references to arrays of length _Nm where each element is of type _Tp. The type of the elements and length of the arrays must match in both arguments. Consider the similarity between the types of those arguments and the type of arrRef in the following example:

    int arr1[] = {1, 2, 3, 4, 5};
    int (&arrRef)[5] = arr1; // arrRef is a reference to arr1
    

    For example, if we have the following:

    int arr1[] = {1, 2, 3, 4, 5};
    int arr2[] = {6, 7, 8, 9, 10};
    swap(arr1, arr2);
    

    We instantiate a version of swap with the signature void swap(int (&)[5], int (&)[5]).

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

Sidebar

Related Questions

I'm learning JQuery and have found the factory function $() with its selectors quite
I have done various tests and I have found that the jQuery validate function
I found a very interesting/strange thing about MAX() function in SQL. I have column
I have found Okapi Similarity measure can be used to calculated document similarity from
I have a C code in which I am using standard library function isalpha()
I have a variadic function from a third-party C library: int func(int argc, ...);
I have found an image format that is being used by some applets. but
There is only one public library for binding Lua to Ada I have found
I have found that I have no problem using require to load something like
I have found many great answers to this from a year ago (when it

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.