Chapt 14. Template

14.1 Function Template (Learn C++)

Write one function, Work with different parameter types

SOURCE CODE

14.2 Function Template Instance: (Learn C++)

function template with actual parameter type is compiled at run time.

14.3 Template Classes: (Learn C++)

template class is useful for containers dealing with various data types

template class is compiled at run time. so if you don’t use it, never compiled

SOURCE CODE

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s