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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:29:39+00:00 2026-06-12T03:29:39+00:00

C++ STL string is implemented by template. I am learing C# at the moment,

  • 0

C++ STL string is implemented by template.

I am learing C# at the moment, just curious what’s the reason the .net designers didn’t provide a generic string in System.Collections.Generic?

How can I have a int’s string, double’s string in C#?

  • 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-12T03:29:40+00:00Added an answer on June 12, 2026 at 3:29 am

    There are no such things as strings of ints or doubles in C#*; the closest thing is a List<T>, but it does not support the typical string-specific operations, such as substrings, trimming, and so on.

    You can do most of the things that you can with a string using .NET’s LINQ. For example, substring(1,5) would be list.Skip(1).Take(5).ToList().


    * The same is true for C++: there is basic_string template that can be instantiated with other types, but std::string is an instance of a template class, not a template class itself.

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

Sidebar

Related Questions

I always thought an std::string was implemented as an STL wrapper for a C
If i have a stl map from string to int and i want to
It is given in the STL reference that string class is in string header,then
Using the STL C++ hash_map... class MyKeyObject { std::string str1; std::string str2; bool operator==(...)
The STL commonly defines an output iterator like so: template<class Cont> class insert_iterator :
I implemented a Simple STL map in C++. Factored out the comparison as a
Recently, I was buzzed by the following problem STL std::string class causes crashes and
Why doesn't the STL string class have an overloaded char* operator built-in? Is there
I am reading 'generic programming and the stl' in chapter1, this is a sample
I'm using the STL string within an application of mine, and I was recently

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.