Click here to Skip to main content
15,894,720 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralPersist STL vector to Registry Pin
Neville Franks12-Jan-03 14:22
Neville Franks12-Jan-03 14:22 
QuestionHow can I prohibit STL alter its items' addreses Pin
IMiracle12-Jan-03 1:13
IMiracle12-Jan-03 1:13 
AnswerRe: How can I prohibit STL alter its items' addreses Pin
Joaquín M López Muñoz12-Jan-03 11:30
Joaquín M López Muñoz12-Jan-03 11:30 
Generaltemplates as paremeters in std::vector<> Pin
Biochemist10-Jan-03 10:54
Biochemist10-Jan-03 10:54 
GeneralRe: templates as paremeters in std::vector<> Pin
Nemanja Trifunovic10-Jan-03 11:43
Nemanja Trifunovic10-Jan-03 11:43 
GeneralRe: templates as paremeters in std::vector<> Pin
Todd Smith10-Jan-03 12:10
Todd Smith10-Jan-03 12:10 
GeneralRe: templates as paremeters in std::vector Pin
Tim Smith10-Jan-03 17:39
Tim Smith10-Jan-03 17:39 
GeneralRe: templates as paremeters in std::vector<> Pin
Biochemist11-Jan-03 3:11
Biochemist11-Jan-03 3:11 
Thank you Nemanja, thank you Todd, thank you Tim!
Of course I am familiar with answers proposed by Todd and Tim.
If I define a type of my template first, say

typedef MyTemplate<int> intMyTemplate;

and then define

typedef std::vector<intMyTemplate> intMyVector;

or even shorter

typedef std::vector< MyTemplate<int> > intMyVector;
all the rest will work fine.

But my goal is just to write some construction that would enable me
to define a vector in the fashion like this:

typedef MyVector<T> TMyVector;
and will produce an std::vector< MyTemplate<t> > which contains
elements of type of MyTemplate<t>.

I was trying to use something like this:

template<class T, template<class> class container=std::vector><br />
struct MyVector<br />
{<br />
  container<T> m_container;<br />
};

but this code dosn't compile in VC60. Nemanja wrote that VC compiler
dosn't support template-templates. May be some service pack will help?
Or gurus could propose some other resolution?Confused | :confused:

Thank to all anyway!
Smile | :)
GeneralRe: templates as paremeters in std::vector<> Pin
Michael Dunn11-Jan-03 19:34
sitebuilderMichael Dunn11-Jan-03 19:34 
GeneralRe: templates as paremeters in std::vector<> Pin
Nemanja Trifunovic13-Jan-03 5:44
Nemanja Trifunovic13-Jan-03 5:44 
GeneralRe: templates as paremeters in std::vector<> Pin
Ben Burnett13-Jan-03 17:01
Ben Burnett13-Jan-03 17:01 
GeneralRe: templates as paremeters in std::vector<> Pin
Nemanja Trifunovic13-Jan-03 5:48
Nemanja Trifunovic13-Jan-03 5:48 
Generalbinary_search / lower_bound Pin
User 98858-Jan-03 9:43
User 98858-Jan-03 9:43 
GeneralRe: binary_search / lower_bound Pin
User 98858-Jan-03 11:33
User 98858-Jan-03 11:33 
GeneralRe: binary_search / lower_bound Pin
Tim Smith9-Jan-03 8:07
Tim Smith9-Jan-03 8:07 
GeneralMemory Leak WIth OLE2A and other conversion macros. Pin
Anonymous8-Jan-03 3:05
Anonymous8-Jan-03 3:05 
GeneralRe: Memory Leak WIth OLE2A and other conversion macros. Pin
AlexO8-Jan-03 5:16
AlexO8-Jan-03 5:16 
GeneralRe: Memory Leak WIth OLE2A and other conversion macros. Pin
Tim Smith8-Jan-03 10:12
Tim Smith8-Jan-03 10:12 
GeneralRe: Memory Leak WIth OLE2A and other conversion macros. Pin
AlexO9-Jan-03 3:01
AlexO9-Jan-03 3:01 
GeneralRe: Memory Leak WIth OLE2A and other conversion macros. Pin
Tim Smith9-Jan-03 3:54
Tim Smith9-Jan-03 3:54 
GeneralRe: Memory Leak WIth OLE2A and other conversion macros. Pin
AlexO9-Jan-03 4:07
AlexO9-Jan-03 4:07 
GeneralRe: Memory Leak WIth OLE2A and other conversion macros. Pin
Tim Smith9-Jan-03 8:09
Tim Smith9-Jan-03 8:09 
GeneralRe: Memory Leak WIth OLE2A and other conversion macros. Pin
Michael Dunn8-Jan-03 11:05
sitebuilderMichael Dunn8-Jan-03 11:05 
Generalrun an .asp script from within my app Pin
LukeV6-Jan-03 9:19
LukeV6-Jan-03 9:19 
GeneralRe: run an .asp script from within my app Pin
AlexO7-Jan-03 2:53
AlexO7-Jan-03 2:53 

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.