Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
stl_logging.h File Reference
#include <deque>
#include <list>
#include <map>
#include <ostream>
#include <set>
#include <utility>
#include <vector>
#include "absl/container/flat_hash_map.h"
#include "absl/container/flat_hash_set.h"
#include "absl/container/node_hash_map.h"
#include "absl/container/node_hash_set.h"

Go to the source code of this file.

Namespaces

namespace  google
 
namespace  std
 STL namespace.
 

Macros

#define OUTPUT_TWO_ARG_CONTAINER(Sequence)
 
#define OUTPUT_THREE_ARG_CONTAINER(Sequence)
 
#define OUTPUT_FOUR_ARG_CONTAINER(Sequence)
 
#define OUTPUT_FIVE_ARG_CONTAINER(Sequence)
 

Functions

template<class First , class Second >
std::ostream & operator<< (std::ostream &out, const std::pair< First, Second > &p)
 
template<class Iter >
void google::PrintSequence (std::ostream &out, Iter begin, Iter end)
 

Macro Definition Documentation

◆ OUTPUT_FIVE_ARG_CONTAINER

#define OUTPUT_FIVE_ARG_CONTAINER ( Sequence)
Value:
template <class T1, class T2, class T3, class T4, class T5> \
inline std::ostream& operator<<(std::ostream& out, \
const Sequence<T1, T2, T3, T4, T5>& seq) { \
google::PrintSequence(out, seq.begin(), seq.end()); \
return out; \
}
std::ostream & operator<<(std::ostream &out, const std::pair< First, Second > &p)
Definition stl_logging.h:99

Definition at line 85 of file stl_logging.h.

◆ OUTPUT_FOUR_ARG_CONTAINER

#define OUTPUT_FOUR_ARG_CONTAINER ( Sequence)
Value:
template <class T1, class T2, class T3, class T4> \
inline std::ostream& operator<<(std::ostream& out, \
const Sequence<T1, T2, T3, T4>& seq) { \
google::PrintSequence(out, seq.begin(), seq.end()); \
return out; \
}

Definition at line 70 of file stl_logging.h.

◆ OUTPUT_THREE_ARG_CONTAINER

#define OUTPUT_THREE_ARG_CONTAINER ( Sequence)
Value:
template <class T1, class T2, class T3> \
inline std::ostream& operator<<(std::ostream& out, \
const Sequence<T1, T2, T3>& seq) { \
google::PrintSequence(out, seq.begin(), seq.end()); \
return out; \
}

Definition at line 57 of file stl_logging.h.

◆ OUTPUT_TWO_ARG_CONTAINER

#define OUTPUT_TWO_ARG_CONTAINER ( Sequence)
Value:
template <class T1, class T2> \
inline std::ostream& operator<<(std::ostream& out, \
const Sequence<T1, T2>& seq) { \
google::PrintSequence(out, seq.begin(), seq.end()); \
return out; \
}

Definition at line 43 of file stl_logging.h.

Function Documentation

◆ operator<<()

template<class First , class Second >
std::ostream & operator<< ( std::ostream & out,
const std::pair< First, Second > & p )
inline

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Forward declare these two, and define them after all the container streams operators so that we can recurse from pair -> container -> container -> pair properly.

Definition at line 99 of file stl_logging.h.