dust3d/thirdparty/cgal/CGAL-5.1/include/CGAL/Referenced_argument.h

30 lines
831 B
C
Raw Normal View History

2020-10-13 12:44:25 +00:00
// Copyright (c) 2009-2014 INRIA Sophia-Antipolis (France).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org)
//
// $URL: https://github.com/CGAL/cgal/blob/v5.1/Kernel_d/include/CGAL/Referenced_argument.h $
// $Id: Referenced_argument.h 52164b1 2019-10-19T15:34:59+02:00 Sébastien Loriot
// SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial
//
// Author(s) : Samuel Hornus, Olivier Devillers
#ifndef REFERENCED_ARGUMENT_H
#define REFERENCED_ARGUMENT_H
template< typename T>
struct Referenced_argument
{
Referenced_argument() : arg_() {}
template<typename A>
Referenced_argument(A a) : arg_(a) {}
template<typename A, typename B>
Referenced_argument(A a, B b) : arg_(a, b) {}
T & arg() { return arg_; }
protected:
T arg_;
};
#endif // REFERENCED_ARGUMENT_H