13template <
class Out,
class In>
17 (In(-1) < In(0) && in < std::numeric_limits<Out>::min());
23 return (port >= 0) && !utils::isTruncated<unsigned short>(port);
27inline bool xOR(
bool lhs,
bool rhs)
29 return (lhs && (!rhs)) || ((!lhs) && rhs);
38template <
typename ELEMENT_T>
44template <
typename KEY_T,
typename ELEMENT_T>
49 return map.
find(key) != map.
end();
52template <
typename KEY_T>
57 return set.
find(key) != set.
end();
bool contained(const ELEMENT_T &element, const std::vector< ELEMENT_T > &vec)
Returns true, if given element is in vector, otherwise false.
bool isTruncated(In in)
Returns true, if numerical truncation happens in case of type conversion.
bool xOR(bool lhs, bool rhs)
Exclusive "or" logical operation. Returns true, if either lhs or rhs are true.
bool isValidPort(int port)
Returns true if the argument represents a valid port.
bool isMachineBigEndian()
Returns true if machine is big-endian needed for parallel vtk output.
Main namespace of the precice library.