Logo Search packages:      
Sourcecode: libneuralnet version File versions  Download package

pair.hh

/*
** pair.hh
** Login : <nico@Altarion.marmotte.ath.cx>
** Started on  Tue Jul 22 16:10:59 2003 Nicolas
** $Id: pair.hh,v 1.2 2003/07/29 19:38:29 speedblue Exp $
** 
** Copyright (C) 2003 Nicolas
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU Lesser General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
** 
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU Lesser General Public License for more details.
** 
** You should have received a copy of the GNU Lesser General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

#ifndef     PAIR_HH_
# define    PAIR_HH_

template <class T>
struct pair
{
  pair() {}
  pair(T& one,T& two) {first = one; second = two; }
  
  pair& operator=(pair& rhs) 
  { 
    first = rhs.first; 
    second = rhs.second;
    return *this;
  }

  T first;
  T second;
};


#endif          /* !PAIR_HH_ */

Generated by  Doxygen 1.6.0   Back to index