3 #ifndef INCLUDED_FROM_NUMBERS_H
4 static_assert(
false,
"This file may only be included indirectly by numbers.h");
28 template<
typename From,
typename To, carl::DisableIf< std::is_same<From,To> > = dummy >
31 template<
typename From,
typename To, carl::EnableIf< std::is_same<From,To> > = dummy >
32 inline To
convert(
const From& n);
34 template<
typename Number>
38 inline T
parse(
const std::string& n);
41 inline bool try_parse(
const std::string& n, T& res);
carl is the main namespace for the library.
T rationalize(const PreventConversion< mpq_class > &)
Integer to_int(const Interval< Number > &_floatInterval)
Casts the Interval to an arbitrary integer type which has a constructor for a native int.
T parse(const std::string &n)
bool try_parse(const std::string &n, T &res)
BasicConstraint< ToPoly > convert(const typename ToPoly::ContextType &context, const BasicConstraint< FromPoly > &c)