Skip to main content

Exploring Template Template Parameters

  • Conference paper
  • First Online:
Perspectives of System Informatics (PSI 2001)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 2244))

  • 361 Accesses

Abstract

The generic programming paradigm has exerted great in.uence on the recent development of C++, e.g., large parts of its standard library [2] are based on generic containers and algorithms. While templates, the language feature of C++ that supports generic programming, have become widely used and well understood in the last years, one aspect of templates has been mostly ignored: template template parameters ([2], 14.1). In the first part, this article will present an in depth introduction of the new technique. The second part introduces a class for arbitrary precision arithmetic, whose design is based on template template parameters. Finally, we end with a discussion of the benefits and drawbacks of this new programming technique and how it applies to generic languages other than C++.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Andrei Alexandrescu. Modern C++ Design, Addison-Wesley Publishing Company, 2001.

    Google Scholar 

  2. ANSI/ISO Standard. Programming languages-C++, ISO/IEC 14882, 1998.

    Google Scholar 

  3. Borland, Inprise Corporation. Borland C++ Compiler 5.5, http://www.borland.com/ bcppbuilder/freecompiler.

  4. Matthew Austern.Algorithms and Containers, C++ Report, p. 44–47, 101 communications, July–August 2000.

    Google Scholar 

  5. Matthew Austern. Generic Programming and the STL, Addison-Wesley Publishing Company, 1999.

    Google Scholar 

  6. Rudolf Berrendorf, Bernd Mohr. PCL-The Performance Counter Library, http://www.fz-juelich.de/zam/PCL.

  7. Hans Boehm. Boehm-Weiser-Demers collector, http://www.hpl.hp.com/personal/Hans Boehm/gc.

  8. Edison Design Group. The C++ Front End, http://www.edg.com/cpp.html.

  9. Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides. Design Patterns, Addison-Wesley Publishing Company, 1995.

    Google Scholar 

  10. GCC steering committee. GCC Home Page, http://gcc.gnu.org.

  11. Torbjorn Granlund. GNU MP-The GNU Multi Precision Library, http://www.swox.com/gmp.

  12. Bruno Haible. CLN, http://clisp.cons.org/haible/packages-cln.html.

  13. IBM. IBM VisualAge C++, http://www.software.ibm.com/ad/visualage c++.

  14. Mehdi Jazayeri, Rüdiger G. K. Loos, David R. Musser (Eds.). Generic Programming, LNCS No. 1766, Springer, 2000.

    Google Scholar 

  15. David R. Musser, Gillmer J. Derge, Atul Saini. STL Tutorial and Reference Guide: Second Edition, Addison-Wesley Publishing Company, 2001.

    Google Scholar 

  16. David R. Musser, S. Schupp, Rüdiger Loos. Requirement Oriented Programming, in [14], p. 12–24, 2000.

    Google Scholar 

  17. Scott Meyers. Effiective C++ CD, Addison-Wesley Publishing Company, 1999.

    Google Scholar 

  18. Gor V. Nishanov, Sibylle Schupp. Garbage Collection in Generic Libraries, Proc. of the ISMM 1998, p. 86–97, Richard Jones (editor), 1998.

    Google Scholar 

  19. Gor V. Nishanov, Sibylle Schupp. Design and implementation of the fgc garbage collector, Technical Report98-7, RPI, Troy, 1998.

    Google Scholar 

  20. Rogue Wave Software. Rogue Wave STL (development snapshot), November 2000.

    Google Scholar 

  21. Volker Simonis, Roland Weiss. Heterogeneous, Nested STL Containers in C++, LNCS No. 1755 (PSI’99): p. 263–267, Springer, 1999.

    Google Scholar 

  22. Victor Shoup. NTL, http://www.shoup.net/ntl.

  23. STL Team at SGI. Standard Template Library Programmer’ Guide, http://www.sgi.com/Technology/STL.

  24. Sebastian Wedeniwski. Piologie, http://ftp://ftp.informatik.uni-tuebingen.de/pub/CA/software/Piologie.

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2001 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Weiss, R., Simonis, V. (2001). Exploring Template Template Parameters. In: Bjørner, D., Broy, M., Zamulin, A.V. (eds) Perspectives of System Informatics. PSI 2001. Lecture Notes in Computer Science, vol 2244. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-45575-2_48

Download citation

  • DOI: https://doi.org/10.1007/3-540-45575-2_48

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-43075-9

  • Online ISBN: 978-3-540-45575-2

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics