cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
what does this means
what does this means
Apr 4, 2014 at 11:15am UTC
hacknayan
(19)
hi i am reading this book about SDL and I encounter this line of code that I dont know what is it or what it will do. the book didnt tell anything.
here is the code
std::map<std::string, SDL_Texture*> m_textureMap;
what i want to know is what is map<std::string, SDL_Texture*>
Apr 4, 2014 at 11:18am UTC
Peter87
(11234)
http://www.cplusplus.com/reference/map/map/
http://www.cplusplus.com/reference/string/string/
http://wiki.libsdl.org/SDL_Texture
Apr 4, 2014 at 11:48am UTC
keskiverto
(10402)
"std::foo" should mean that "foo" is part of C++ Standard Library, so books assume the reader to consult the reference documentation.
"foo<bar> gaz;" ... refer to C++ template instantiation.
"foo<bar*> gaz;" ... template type is a pointer-type.
Apr 4, 2014 at 11:55am UTC
hacknayan
(19)
@keskiverto
oh, i see, i know the std thing cuz i read somewhere that using namespace std is a bad practice. what i dont really know is the template coz i never encounter them before and i dont know what to search coz i dont know what is it called. thanks alot.
Topic archived. No new replies allowed.