Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Template (C++)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Class templates === A class template provides a specification for generating classes based on parameters. Class templates are generally used to implement [[container (data structure)|containers]]. A class template is instantiated by passing a given set of types to it as template arguments.<ref name="cpptemplates">{{cite book |last1=Vandevoorde |first1=Daveed |last2=Josuttis |first2=Nicolai |title=C++ Templates: The Complete Guide |publisher=[[Addison Wesley]] |year=2002 |isbn=978-0-201-73484-3 }}</ref> The C++ Standard Library contains many class templates, in particular the containers adapted from the [[Standard Template Library]], such as <code>[[Vector (C++)|vector]]</code>.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)