back_inserter_second_element.h Source File

CPP API: back_inserter_second_element.h Source File
back_inserter_second_element.h
Go to the documentation of this file.
1 /*
2 * Copyright (C) 2020-2026 MEmilio
3 *
4 * Authors: Kilian Volmer
5 *
6 * Contact: Martin J. Kuehn <Martin.Kuehn@DLR.de>
7 *
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20 #ifndef MIO_UTILS_BACK_INSERTER_SECOND_ELEMENT_H
21 #define MIO_UTILS_BACK_INSERTER_SECOND_ELEMENT_H
22 
23 namespace mio
24 {
32 template <class Container, class Pair>
34  Container& container;
36  {
37  return *this;
38  }
40  {
41  return *this;
42  }
44  {
45  return *this;
46  }
48  {
49  container.push_back(pair.second);
50  return *this;
51  }
52 };
53 
54 } // namespace mio
55 
56 #endif // MIO_UTILS_BACK_INSERTER_SECOND_ELEMENT_H
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
Back inserter that ignores the first element of pairs given to it.
Definition: back_inserter_second_element.h:33
Container & container
Definition: back_inserter_second_element.h:34
back_inserter_second_element operator++(int)
Definition: back_inserter_second_element.h:43
back_inserter_second_element & operator=(const Pair &pair)
Definition: back_inserter_second_element.h:47
back_inserter_second_element & operator++()
Definition: back_inserter_second_element.h:39
back_inserter_second_element & operator*()
Definition: back_inserter_second_element.h:35