~ubuntu-branches/ubuntu/oneiric/swig1.3/oneiric

« back to all changes in this revision

Viewing changes to Lib/php/std_pair.i

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2009-11-15 14:00:28 UTC
  • mfrom: (1.2.9 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091115140028-me7amr2rie8zz1xn
Tags: 1.3.40-2ubuntu1
* Merge from Debian testing (LP: #356529), remaining changes:
  - Drop libchicken-dev from the build-depends (it's in universe)
  - Remove Pike from package description and from configure flags
  - drop "--without-mzscheme", we don't have it in our build-depends
  - use php-config5
  - Clean Runtime/ as well.
  - debian/rules (clean): Remove Lib/ocaml/swigp4.ml.
* debian/rules: Remove hardcoded python version.
* Remove upper limit for python from Build-Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -----------------------------------------------------------------------------
 
2
 * See the LICENSE file for information on copyright, usage and redistribution
 
3
 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
 
4
 *
 
5
 * std_pair.i
 
6
 *
 
7
 * SWIG typemaps for std::pair
 
8
 * ----------------------------------------------------------------------------- */
 
9
 
 
10
%include <std_common.i>
 
11
%include <exception.i>
 
12
 
 
13
// ------------------------------------------------------------------------
 
14
// std::pair
 
15
// ------------------------------------------------------------------------
 
16
 
 
17
%{
 
18
#include <utility>
 
19
%}
 
20
 
 
21
namespace std {
 
22
 
 
23
  template<class T, class U> struct pair {
 
24
 
 
25
    pair();
 
26
    pair(T first, U second);
 
27
    pair(const pair& p);
 
28
 
 
29
    template <class U1, class U2> pair(const pair<U1, U2> &p);
 
30
 
 
31
    T first;
 
32
    U second;
 
33
  };
 
34
 
 
35
  // add specializations here
 
36
 
 
37
}