skip to main content
research-article

Gem #9: Classwide operations, iterators, and generic algorithms

Published:01 April 2008Publication History
Skip Abstract Section

Abstract

Ada Gem #9 - A generic algorithm manipulates container elements in a way that is completely general, working with any container (including arrays) that provides a way to iterate over its elements. In this example we systematically alter an operation for copying containers within a common class, converting it to a generic algorithm that ultimately works for any kind of container.

Index Terms

  1. Gem #9: Classwide operations, iterators, and generic algorithms

      Recommendations

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in

      Full Access

      • Published in

        cover image ACM SIGAda Ada Letters
        ACM SIGAda Ada Letters  Volume XXVIII, Issue 1
        April 2008
        74 pages
        ISSN:1094-3641
        DOI:10.1145/1387830
        Issue’s Table of Contents

        Copyright © 2008 Author

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 1 April 2008

        Check for updates

        Qualifiers

        • research-article
      • Article Metrics

        • Downloads (Last 12 months)2
        • Downloads (Last 6 weeks)0

        Other Metrics

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader
      About Cookies On This Site

      We use cookies to ensure that we give you the best experience on our website.

      Learn more

      Got it!