1 / 21

Review: C Standard Template Library STL

Intro to C STL Containers. GoalsSee how STL containers are implementedSee how differences in implementation affect useWe'll cover several kindsFocus on template conceptsAnd how each container's concept relates to its implementationExample to the left printsv[0] is 1v[1] is 2v[2] is 4.

kaethe
Download Presentation

Review: C Standard Template Library STL

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


    1. Review: C++ Standard Template Library (STL) The STL is a collection of related software elements Containers Data structures: store values according to a specific organization Iterators Variables used to give flexible access to the values in a container Algorithms Functions that use iterators to access values in containers Perform computations that modify values, or creates new ones Function objects Encapsulate a function as an object, use to modify an algorithm The STL makes use of most of what weve covered Functions, classes, structs Extensive use of function and class templates, concepts Typedefs, traits, and associated types

    2. Intro to C++ STL Containers Goals See how STL containers are implemented See how differences in implementation affect use Well cover several kinds Focus on template concepts And how each containers concept relates to its implementation Example to the left prints v[0] is 1 v[1] is 2 v[2] is 4

More Related