473,803 Members | 4,157 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

std::string in "STL .NET"

Will "STL .NET" of VS 2005 include a fully managed std::string?


--
Ioannis Vranos
Nov 17 '05 #1
4 1409
Hi Ionannis,

No, it will not. Nor will it contain a .NET implementation of iostreams. The
iterators should work on System::String so you can use the standard
algorithms on that.

Can you illustrate what kind of functionality from std::string you are
missing and would like to see replicated?

Thanks.

Ronald Laeremans
Visual C++ team

"Ioannis Vranos" <iv*@remove.thi s.grad.com> wrote in message
news:uy******** ******@TK2MSFTN GP12.phx.gbl...
Will "STL .NET" of VS 2005 include a fully managed std::string?


--
Ioannis Vranos

Nov 17 '05 #2
Ronald Laeremans [MSFT] wrote:
Hi Ionannis,

No, it will not. Nor will it contain a .NET implementation of iostreams. The
iterators should work on System::String so you can use the standard
algorithms on that.

Can you illustrate what kind of functionality from std::string you are
missing and would like to see replicated?

Since it was named "STL .NET" and std::string belongs to STL (while
iostreams do not), I just wondered if we would see a /clr:safe
implementation of basic_string essentially.
It wouldn't be that hard, and anyway I just wondered. :-)


--
Ioannis Vranos
Nov 17 '05 #3
Ioannis Vranos wrote:
Ronald Laeremans [MSFT] wrote:
Hi Ionannis,

No, it will not. Nor will it contain a .NET implementation of
iostreams. The iterators should work on System::String so you can use
the standard algorithms on that.

Can you illustrate what kind of functionality from std::string you are
missing and would like to see replicated?


Since it was named "STL .NET" and std::string belongs to STL (while
iostreams do not), I just wondered if we would see a /clr:safe
implementation of basic_string essentially.


A basic_string template wasn't part of the original STL, historically
speaking. I think that it was based on a string class (as opposed to
template); I don't know who wrote this original string class.

Tom
Nov 17 '05 #4
Tom Widmer wrote:
A basic_string template wasn't part of the original STL, historically
speaking. I think that it was based on a string class (as opposed to
template); I don't know who wrote this original string class.

Perhaps in the past, but in C++98 when we are referring to STL, we mean
the template subset of the standard library.
Making basic_string /clr:safe wouldn't be that difficult anyway.

Also I think a good idea would be to make the entire standard library
managed, sometime in the future (even cout).

And place everything where it belongs, in the std namespace.

I am talking about sometime in the future, not for VS 2005 of course.
Now we have STL .NET which is very useful, then cout, cin, wcout, wcin
etc could follow (perhaps some facilities could be implemented with
Console facilities, like operator << of cout by using Console::Write( )
or something), and then the C subset ones.

That is, we could get a /clr:safe managed standard library gradually,
and not in just one release.

A completely managed C++ is what makes sense in a managed environment
(that is, CLR is the platform here).


--
Ioannis Vranos
Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
3523
by: beliavsky | last post by:
Many of my C++ programs have the line using namespace std; but the "Accelerated C++" book of Koenig and Moo has many examples where the library names are included one at a time, for example using std::cin; using std::cout;
4
2713
by: Teddy | last post by:
If I use just a STL container such as std::vector in my program. Is "using std::vector;" better than "using namespace std" ? Does "using namespace std" cost ?
4
1780
by: Generic Usenet Account | last post by:
I am seeing some unexpected behavior while using the STL "includes" algorithm. I am not sure if this is a bug with the template header files in our STL distribution, or if this is how it should work. For your benefit, let me first quote from the STL Standard Reference (Stepanov & Lee): template <class InputIterator1, class InputIterator2> bool includes(InputIterator1 first1, InputIterator1 last1,InputIterator2 first2, InputIterator2...
30
4126
by: Pep | last post by:
Is it best to include the code "using namespace std;" in the source or should each keyword in the std namespace be qualified by the namespace tag, such as std::cout << "using std namespace" << std::endl; Myself I am not sure which I prefer, it is certainly easier to specify that the std namespace is being used instead of tagging each member of the namespace?
13
3672
by: arnuld | last post by:
/* C++ Primer 4/e * section 3.2 - String Standard Library * exercise 3.10 * STATEMENT * write a programme to strip the punctation from the string. */ #include <iostream> #include <string>
0
9703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10548
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10295
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9125
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6842
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5500
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4275
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2970
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.