From d427f6027d75493939be8ea2b929bed9f75d20cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20J=C3=A4rvi?= Date: Tue, 4 Sep 2001 10:59:20 +0000 Subject: [PATCH] added documentation for default construction of cons lists [SVN r11017] --- doc/tuple_advanced_interface.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/tuple_advanced_interface.html b/doc/tuple_advanced_interface.html index 7ebd675..55b6966 100644 --- a/doc/tuple_advanced_interface.html +++ b/doc/tuple_advanced_interface.html @@ -77,6 +77,9 @@ inline void set_to_zero(cons<H, T>& x) { x.get_head() = 0; set_to_zero

Constructing cons lists

+

+A cons list can be default constructed provided that all its elements can be default constructed. +

A cons list can be constructed from its head and tail. The prototype of the constructor is:

cons(typename tuple_access_traits<head_type>::parameter_type h,
@@ -88,6 +91,7 @@ The traits template for the head parameter selects correct parameter types for d
 For a one-element cons list the tail argument (null_type) can be omitted.
 

+

Traits classes for tuple element types

tuple_access_traits