Click here to Skip to main content
15,891,253 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
Questionwtl window class / aligmnent? Pin
Marcin Parka13-Sep-06 19:58
Marcin Parka13-Sep-06 19:58 
QuestionPassing BSTR from javascript to ATL Pin
rana7413-Sep-06 3:01
rana7413-Sep-06 3:01 
QuestionSTL Algorithms Pin
Zac Howland12-Sep-06 11:11
Zac Howland12-Sep-06 11:11 
AnswerRe: STL Algorithms Pin
Christian Graus12-Sep-06 11:41
protectorChristian Graus12-Sep-06 11:41 
GeneralRe: STL Algorithms Pin
Stuart Dootson12-Sep-06 14:19
professionalStuart Dootson12-Sep-06 14:19 
GeneralRe: STL Algorithms Pin
Zac Howland12-Sep-06 16:59
Zac Howland12-Sep-06 16:59 
AnswerRe: STL Algorithms Pin
Michael Dunn12-Sep-06 20:21
sitebuilderMichael Dunn12-Sep-06 20:21 
GeneralRe: STL Algorithms Pin
Stephen Hewitt12-Sep-06 22:08
Stephen Hewitt12-Sep-06 22:08 
I agree with some but not all of your critisims.

Michael Dunn wrote:
The VC 6 STL docs blow so I haven't read them much and don't know what algorithm functions exist

 I think in general MS documentation sucks. But STL is part of C++ and you shouldn't look to MS to teach you C++; the same applies to STL.

Michael Dunn wrote:
The STL naming scheme sucks so it's hard to figure out what some functions are for from just their name (and the docs aren't much help, see 1. I mean, seriously, WTF does "bind2nd" do??)

 I'm not sure about this one. I admit STL has a price of admission but I've got nothing against the naming scheme. I mean, what does EnterCriticalSection do just from the name? Names should be descriptive but the names can be scoped by the general topic to which they apply - in this case synchronization primitives.

Michael Dunn wrote:
Most of the time when I do use algorithms, it involves writing a special-case functor for just that usage, which is workable but just feels sloppy

 I agree this can be a pain. Most times the work involved in writing a functor is not a problem as it can be reused multiple times. There are times however when you find yourself writing a one off functor which just complicates the code. The addition of Lambda functions to C++ would help here. The Boost.Lamda library is also interesting.

Michael Dunn wrote:
Instead of fighting with the docs, I'll just write a for loop and be done with it

This only works for the simplest of the algoritms like copy or for_each. What about things such as binary_search and random_shuffle?

Steve

GeneralRe: STL Algorithms Pin
Stuart Dootson12-Sep-06 22:17
professionalStuart Dootson12-Sep-06 22:17 
GeneralRe: STL Algorithms Pin
Zac Howland13-Sep-06 3:15
Zac Howland13-Sep-06 3:15 
GeneralRe: STL Algorithms Pin
Kevin McFarlane13-Sep-06 4:11
Kevin McFarlane13-Sep-06 4:11 
AnswerRe: STL Algorithms Pin
Steve Echols12-Sep-06 21:29
Steve Echols12-Sep-06 21:29 
GeneralRe: STL Algorithms Pin
Stephen Hewitt12-Sep-06 22:27
Stephen Hewitt12-Sep-06 22:27 
GeneralRe: STL Algorithms Pin
Zac Howland13-Sep-06 3:24
Zac Howland13-Sep-06 3:24 
GeneralRe: STL Algorithms Pin
Stephen Hewitt13-Sep-06 14:14
Stephen Hewitt13-Sep-06 14:14 
GeneralRe: STL Algorithms Pin
Zac Howland13-Sep-06 18:32
Zac Howland13-Sep-06 18:32 
GeneralRe: STL Algorithms [modified] Pin
Stephen Hewitt13-Sep-06 19:32
Stephen Hewitt13-Sep-06 19:32 
GeneralRe: STL Algorithms Pin
Zac Howland14-Sep-06 3:13
Zac Howland14-Sep-06 3:13 
GeneralRe: STL Algorithms Pin
Stephen Hewitt14-Sep-06 13:50
Stephen Hewitt14-Sep-06 13:50 
GeneralRe: STL Algorithms Pin
Zac Howland14-Sep-06 19:17
Zac Howland14-Sep-06 19:17 
GeneralRe: STL Algorithms Pin
Stephen Hewitt14-Sep-06 19:27
Stephen Hewitt14-Sep-06 19:27 
GeneralRe: STL Algorithms Pin
Zac Howland13-Sep-06 3:21
Zac Howland13-Sep-06 3:21 
AnswerRe: STL Algorithms Pin
Kevin McFarlane13-Sep-06 4:08
Kevin McFarlane13-Sep-06 4:08 
GeneralRe: STL Algorithms Pin
Zac Howland13-Sep-06 4:23
Zac Howland13-Sep-06 4:23 
GeneralRe: STL Algorithms Pin
Kevin McFarlane13-Sep-06 9:01
Kevin McFarlane13-Sep-06 9:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.