Reference documentation for deal.II version 9.2.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
bind.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2009 - 2019 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii_std_cxx11_bind_h
17 #define dealii_std_cxx11_bind_h
18 
19 
20 #include <deal.II/base/config.h>
21 
23  "This file is deprecated. Simply use the corresponding C++11 header <functional>.")
24 
25 #include <functional>
26 
28 // In boost, the placeholders _1, _2, ... are in the global namespace. In
29 // C++11, they are in namespace std::placeholders, which makes them awkward to
30 // use. Import them into the ::std_cxx11 namespace instead and do the
31 // same below if we use boost instead. Namespace 'placeholders' is also defined
32 // in ::std_cxx11 namespace to make code C++ standard compatible.
33 // That is to say, if std::something works with C++11 standard,
34 // then ::std_cxx11::something should also work.
35 namespace std_cxx11
36 {
37  using namespace std::placeholders;
38  using std::bind;
39  using std::cref;
40  using std::ref;
41  using std::reference_wrapper;
42 
43  namespace placeholders = std::placeholders;
44 } // namespace std_cxx11
46 
47 #endif
std_cxx11
Definition: array.h:27
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
DEAL_II_WARNING
#define DEAL_II_WARNING(desc)
Definition: config.h:432
config.h
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359