~ubuntu-branches/ubuntu/wily/bombono-dvd/wily

« back to all changes in this revision

Viewing changes to libs/boost-lib/boost/tuple/detail/tuple_basic.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-11-04 11:46:25 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20101104114625-8xfdhvhpsm51i0nu
Tags: upstream-0.8.0
Import upstream version 0.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//  tuple_basic.hpp -----------------------------------------------------
2
2
 
3
 
// Copyright (C) 1999, 2000 Jaakko J�rvi (jaakko.jarvi@cs.utu.fi)
 
3
// Copyright (C) 1999, 2000 Jaakko Jarvi (jaakko.jarvi@cs.utu.fi)
4
4
//
5
5
// Distributed under the Boost Software License, Version 1.0. (See
6
6
// accompanying file LICENSE_1_0.txt or copy at
32
32
#ifndef BOOST_TUPLE_BASIC_HPP
33
33
#define BOOST_TUPLE_BASIC_HPP
34
34
 
35
 
#include <boost/concept_check.hpp>
36
35
 
37
36
#include <utility> // needed for the assignment from pair to tuple
38
37
 
214
213
 
215
214
 
216
215
template<int N, class T>
217
 
struct element: 
 
216
struct element:
218
217
  public detail::element_impl<N, T, ::boost::is_const<T>::value>
219
218
{
220
219
};
363
362
 
364
363
  template <class T2, class T3, class T4, class T5,
365
364
            class T6, class T7, class T8, class T9, class T10>
366
 
  cons( const null_type& t1, T2& t2, T3& t3, T4& t4, T5& t5,
 
365
  cons( const null_type& /*t1*/, T2& t2, T3& t3, T4& t4, T5& t5,
367
366
        T6& t6, T7& t7, T8& t8, T9& t9, T10& t10 )
368
367
    : head (),
369
368
      tail (t2, t3, t4, t5, t6, t7, t8, t9, t10, detail::cnull())
370
 
      { boost::ignore_unused_variable_warning(t1); }
 
369
      {}
371
370
 
372
371
 
373
372
  template <class HT2, class TT2>
490
489
};
491
490
 
492
491
template<>
 
492
struct length<tuple<> const> {
 
493
  BOOST_STATIC_CONSTANT(int, value = 0);
 
494
};
 
495
 
 
496
template<>
493
497
struct length<null_type> {
494
498
  BOOST_STATIC_CONSTANT(int, value = 0);
495
499
};
496
500
 
 
501
template<>
 
502
struct length<null_type const> {
 
503
  BOOST_STATIC_CONSTANT(int, value = 0);
 
504
};
497
505
 
498
506
namespace detail {
499
507