STL或STL [英] To STL or not to STL

查看:72
本文介绍了STL或STL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我有兴趣知道是否有任何C ++程序员不使用STL。

我一直用C ++编写代码现在已经一年左右了,虽然最近才有了b $ b,但我开始了一个大型(ish)规模的项目。我没有使用任何STL,而且我想知道是否有其他人在那里使用STL没有

的C ++程序? (只是为了看看我是不是因为不使用它而感到愚蠢)


谢谢

Allan


-

Allan Bruce

计算科学系

阿伯丁大学

Aberdeen AB24 3UE

苏格兰,英国

解决方案

Allan Bruce< al ***** @ takeawayf2s.com>写道:

我有兴趣知道是否有任何C ++程序员不使用STL。




不能代表其他我当然不会自己构建所有一般的

目的容器。我为什么要这样?


Andre''


Allan Bruce< al ***** @ takeawayf2s.com>这样说:

我很想知道是否有任何C ++程序员不使用STL。
我现在用C ++编写了一年左右的代码,尽管只是最近才开始我开始了一个大型(ish)规模的项目。我没有使用任何STL,我想知道是否有其他人在那里用C ++编写没有
使用STL的程序? (只是为了看看我是不是因为没有使用它而愚蠢)




FWIW,我公司的编程总监是一个旧的DOS h4x0r,他是

很久以前写的代码完全包装/替换(我不能说哪个......)

STL。他的理由是STL(特别是std ::矢量)并没有表现得像他想要的那样,无论如何他是一个真正的重塑更好的轮子。类型

的家伙。


-

Christopher Benson-Manica |我*应该*知道我在说什么 - 如果我

ataru(at)cyberspace.org |不,我需要知道。火焰欢迎。


Allan Bruce写道:


你好,

我有兴趣知道如果有任何C ++程序员不使用STL。
我已经用C ++编写了一年左右的时间,虽然只是最近才开始一个大型(ish)规模的项目。我没有使用任何STL,我想知道是否有其他人在那里用C ++编写没有
使用STL的程序? (只是为了看看我是不是因为不使用它而感到愚蠢)

感谢
Allan



我会说最大的一组不使用

标准库的程序员必须是那些使用

MFC库编写Windows应用程序的人。由于MFC提供了类似类型的类(字符串,

容器),我认识的大多数程序员对标准库的知识都很少。


Hi there,

I am interested to know if there are any C++ programmers who do not use STL.
I have been coding in C++ for a year or so now, although only recently have
I started a large(ish)-scale project. I do not use any STL, and I was
wondering if there are any others out there that program in C++ without
using STL? (Just to see if I am being stupid by not using it)

Thanks
Allan

--
Allan Bruce
Dept. of Computing Science
University of Aberdeen
Aberdeen AB24 3UE
Scotland, UK

解决方案

Allan Bruce <al*****@takeawayf2s.com> wrote:

I am interested to know if there are any C++ programmers who do not use STL.



Can''t speeak for the others by I certainly do not build all the general
purpose containers myself. Why should I?

Andre''


Allan Bruce <al*****@takeawayf2s.com> spoke thus:

I am interested to know if there are any C++ programmers who do not use STL.
I have been coding in C++ for a year or so now, although only recently have
I started a large(ish)-scale project. I do not use any STL, and I was
wondering if there are any others out there that program in C++ without
using STL? (Just to see if I am being stupid by not using it)



FWIW, the director of programming at my company is an old DOS h4x0r, and he
long ago wrote code that completely wraps/replaces (I can''t say which...) the
STL. His reasoning is that the STL (std::vectors, particularly), didn''t
behave like he wanted, and anyway he''s a real "reinvent a better wheel" type
of guy.

--
Christopher Benson-Manica | I *should* know what I''m talking about - if I
ataru(at)cyberspace.org | don''t, I need to know. Flames welcome.


Allan Bruce wrote:


Hi there,

I am interested to know if there are any C++ programmers who do not use STL.
I have been coding in C++ for a year or so now, although only recently have
I started a large(ish)-scale project. I do not use any STL, and I was
wondering if there are any others out there that program in C++ without
using STL? (Just to see if I am being stupid by not using it)

Thanks
Allan


I''d say that the biggest group of programmers that don''t use the
standard library would have to be those writing Windows apps using the
MFC library. Since MFC provides similar types of classes (strings,
containers), the majority of programmers that I know have little
knowledge of the standard library.


这篇关于STL或STL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆