Skip to content

Commit

Permalink
apply fix-format
Browse files Browse the repository at this point in the history
  • Loading branch information
luk036 committed May 1, 2024
1 parent 090bc5e commit 3bbb1aa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions include/py2cpp/dict.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ namespace py {
* @return true
* @return false
*/
template <typename Key, typename T> inline auto operator<(const Key &key, const dict<Key, T> &m)
-> bool {
template <typename Key, typename T>
inline auto operator<(const Key &key, const dict<Key, T> &m) -> bool {
return m.contains(key);
}

Expand Down
8 changes: 4 additions & 4 deletions include/py2cpp/enumerate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ namespace py {
* @param[in] iterable
* @return detail::EnumerateIterableWrapper<T>
*/
template <typename T> inline auto enumerate(T &iterable)
-> detail::EnumerateIterableWrapper<T> {
template <typename T>
inline auto enumerate(T &iterable) -> detail::EnumerateIterableWrapper<T> {
return detail::EnumerateIterableWrapper<T>{iterable};
}

Expand All @@ -152,8 +152,8 @@ namespace py {
* @param[in] iterable
* @return detail::EnumerateIterableWrapper<const T>
*/
template <typename T> inline auto const_enumerate(const T &iterable)
-> detail::EnumerateIterableWrapper<const T> {
template <typename T>
inline auto const_enumerate(const T &iterable) -> detail::EnumerateIterableWrapper<const T> {
return detail::EnumerateIterableWrapper<const T>{iterable};
}

Expand Down
4 changes: 2 additions & 2 deletions include/py2cpp/fractions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -734,8 +734,8 @@ namespace fun {
* @param[in] frac
* @return _Stream&
*/
template <typename _Stream> friend auto operator<<(_Stream &os, const Fraction &frac)
-> _Stream & {
template <typename _Stream>
friend auto operator<<(_Stream &os, const Fraction &frac) -> _Stream & {
os << "(" << frac.num() << "/" << frac.den() << ")";
return os;
}
Expand Down

0 comments on commit 3bbb1aa

Please sign in to comment.