Skip to content

Commit

Permalink
Rename namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Dec 28, 2024
1 parent 637e0ab commit 98879ea
Show file tree
Hide file tree
Showing 74 changed files with 130 additions and 130 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@

## Provided algorithms and examples

* All provided templates are in the nested namespace `tao::seq`.
* All provided templates are in the nested namespace `tao::sequence`.
* All templates don't use C++14 features, therefore being compatible with C++11. Sometimes, C++14/C++17 features are used conditionally, taking advantage of newer language features when available but providing C++11-compatible implementations otherwise.
* All templates use `tao::seq::integer_sequence`, etc. internally, therefore being compatible with C++11.
* All templates use `tao::seq::make_integer_sequence`, etc. internally, therefore using the most scalable solution available.
* All templates use `tao::sequence::integer_sequence`, etc. internally, therefore being compatible with C++11.
* All templates use `tao::sequence::make_integer_sequence`, etc. internally, therefore using the most scalable solution available.

#### Header `tao/seq/integer_sequence.hpp`

Expand Down Expand Up @@ -434,10 +434,11 @@ If the version is out-of-date, please [create an issue or pull request](https://

## Changelog

### 2.1.0
### 3.0.0

**Not yet released**
Released 2024-12-28

* Renamed namespace from `tao::seq` to `tao::sequence`.
* Added `last`.

### 2.0.1
Expand Down Expand Up @@ -478,7 +479,7 @@ Released 2018-06-29

The Art of C++ is certified [Open Source](http://www.opensource.org/docs/definition.html) software. It may be used for any purpose, including commercial purposes, at absolutely no cost. It is distributed under the terms of the [MIT license](http://www.opensource.org/licenses/mit-license.html) reproduced here.

> Copyright (c) 2015-2020 Daniel Frey
> Copyright (c) 2015-2024 Daniel Frey
>
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
>
Expand Down
4 changes: 2 additions & 2 deletions include/tao/seq/accumulate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace tao
{
namespace seq
namespace sequence
{
#ifdef TAO_SEQ_FOLD_EXPRESSIONS

Expand Down Expand Up @@ -76,7 +76,7 @@ namespace tao
{
};

} // namespace seq
} // namespace sequence

} // namespace tao

Expand Down
4 changes: 2 additions & 2 deletions include/tao/seq/at_index.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace tao
{
namespace seq
namespace sequence
{
#ifdef TAO_SEQ_TYPE_PACK_ELEMENT

Expand Down Expand Up @@ -91,7 +91,7 @@ namespace tao

#endif

} // namespace seq
} // namespace sequence

} // namespace tao

Expand Down
4 changes: 2 additions & 2 deletions include/tao/seq/concatenate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace tao
{
namespace seq
namespace sequence
{
#ifdef TAO_SEQ_FOLD_EXPRESSIONS

Expand Down Expand Up @@ -68,7 +68,7 @@ namespace tao

#endif

} // namespace seq
} // namespace sequence

} // namespace tao

Expand Down
4 changes: 2 additions & 2 deletions include/tao/seq/contains.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace tao
{
namespace seq
namespace sequence
{
namespace impl
{
Expand All @@ -33,7 +33,7 @@ namespace tao
template< typename T, typename impl::element_type< T >::type N, T... Ns >
using contains = typename impl::contains< T >::template type< N, Ns... >;

} // namespace seq
} // namespace sequence

} // namespace tao

Expand Down
4 changes: 2 additions & 2 deletions include/tao/seq/contrib/make_index_of_sequence.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace tao
{
namespace seq
namespace sequence
{
template< typename, typename >
struct make_index_of_sequence;
Expand All @@ -25,7 +25,7 @@ namespace tao
template< typename A, typename B >
using make_index_of_sequence_t = typename make_index_of_sequence< A, B >::type;

} // namespace seq
} // namespace sequence

} // namespace tao

Expand Down
4 changes: 2 additions & 2 deletions include/tao/seq/contrib/permutate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace tao
{
namespace seq
namespace sequence
{
template< typename I >
using inverse_t = make_index_of_sequence_t< I, make_index_sequence< I::size() > >;
Expand All @@ -21,7 +21,7 @@ namespace tao
template< typename I, typename S >
using permutate_t = typename permutate< I, S >::type;

} // namespace seq
} // namespace sequence

} // namespace tao

Expand Down
4 changes: 2 additions & 2 deletions include/tao/seq/contrib/sort_index.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace tao
{
namespace seq
namespace sequence
{
template< typename OP, typename T, T... Ns >
struct sort_index
Expand All @@ -27,7 +27,7 @@ namespace tao
template< typename OP, typename T, T... Ns >
using sort_index_t = typename sort_index< OP, T, Ns... >::type;

} // namespace seq
} // namespace sequence

} // namespace tao

Expand Down
4 changes: 2 additions & 2 deletions include/tao/seq/difference.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace tao
{
namespace seq
namespace sequence
{
template< typename, typename >
struct difference;
Expand All @@ -32,7 +32,7 @@ namespace tao
template< typename A, typename B >
using difference_t = typename difference< A, B >::type;

} // namespace seq
} // namespace sequence

} // namespace tao

Expand Down
4 changes: 2 additions & 2 deletions include/tao/seq/exclusive_scan.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace tao
{
namespace seq
namespace sequence
{
namespace impl
{
Expand Down Expand Up @@ -88,7 +88,7 @@ namespace tao
template< typename OP, typename T, typename impl::element_type< T >::type Init, T... Ns >
using exclusive_scan_t = typename exclusive_scan< OP, T, Init, Ns... >::type;

} // namespace seq
} // namespace sequence

} // namespace tao

Expand Down
6 changes: 3 additions & 3 deletions include/tao/seq/first.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace tao
{
namespace seq
namespace sequence
{
namespace impl
{
Expand All @@ -22,7 +22,7 @@ namespace tao
struct first< index_sequence< Is... >, T, Ns... >
{
template< std::size_t I >
using element = seq::select< I, T, Ns... >;
using element = sequence::select< I, T, Ns... >;

using type = integer_sequence< T, element< Is >::value... >;
};
Expand All @@ -44,7 +44,7 @@ namespace tao
template< std::size_t I, typename T, T... Ns >
using first_t = typename first< I, T, Ns... >::type;

} // namespace seq
} // namespace sequence

} // namespace tao

Expand Down
4 changes: 2 additions & 2 deletions include/tao/seq/functional.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace tao
{
namespace seq
namespace sequence
{
namespace op
{
Expand Down Expand Up @@ -122,7 +122,7 @@ namespace tao

} // namespace op

} // namespace seq
} // namespace sequence

} // namespace tao

Expand Down
4 changes: 2 additions & 2 deletions include/tao/seq/head.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace tao
{
namespace seq
namespace sequence
{
template< typename T, T... Ns >
struct head;
Expand All @@ -27,7 +27,7 @@ namespace tao
{
};

} // namespace seq
} // namespace sequence

} // namespace tao

Expand Down
4 changes: 2 additions & 2 deletions include/tao/seq/inclusive_scan.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace tao
{
namespace seq
namespace sequence
{
template< typename OP, typename T, T... Ns >
struct inclusive_scan;
Expand All @@ -35,7 +35,7 @@ namespace tao
template< typename OP, typename T, T... Ns >
using inclusive_scan_t = typename inclusive_scan< OP, T, Ns... >::type;

} // namespace seq
} // namespace sequence

} // namespace tao

Expand Down
8 changes: 4 additions & 4 deletions include/tao/seq/index_of.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace tao
{
namespace seq
namespace sequence
{
namespace impl
{
Expand All @@ -22,14 +22,14 @@ namespace tao
struct index_of< U, index_sequence< Is... > >
{
template< typename T, T N, T... Ns >
using type = seq::min< std::size_t, ( ( N == Ns ) ? Is : sizeof...( Is ) )... >;
using type = sequence::min< std::size_t, ( ( N == Ns ) ? Is : sizeof...( Is ) )... >;
};

template< typename T, T... Ns, std::size_t... Is >
struct index_of< integer_sequence< T, Ns... >, index_sequence< Is... > >
{
template< typename, T N >
using type = seq::min< std::size_t, ( ( N == Ns ) ? Is : sizeof...( Is ) )... >;
using type = sequence::min< std::size_t, ( ( N == Ns ) ? Is : sizeof...( Is ) )... >;
};

} // namespace impl
Expand All @@ -41,7 +41,7 @@ namespace tao
static_assert( contains< T, N, Ns... >::value, "index not found" );
};

} // namespace seq
} // namespace sequence

} // namespace tao

Expand Down
4 changes: 2 additions & 2 deletions include/tao/seq/integer_sequence.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace tao
{
namespace seq
namespace sequence
{
#ifdef TAO_SEQ_USE_STD_INTEGER_SEQUENCE

Expand All @@ -36,7 +36,7 @@ namespace tao

#endif

} // namespace seq
} // namespace sequence

} // namespace tao

Expand Down
4 changes: 2 additions & 2 deletions include/tao/seq/is_all.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

namespace tao
{
namespace seq
namespace sequence
{
#ifdef TAO_SEQ_FOLD_EXPRESSIONS

Expand All @@ -32,7 +32,7 @@ namespace tao

#endif

} // namespace seq
} // namespace sequence

} // namespace tao

Expand Down
4 changes: 2 additions & 2 deletions include/tao/seq/is_any.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

namespace tao
{
namespace seq
namespace sequence
{
#ifdef TAO_SEQ_FOLD_EXPRESSIONS

Expand All @@ -32,7 +32,7 @@ namespace tao

#endif

} // namespace seq
} // namespace sequence

} // namespace tao

Expand Down
4 changes: 2 additions & 2 deletions include/tao/seq/last.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

namespace tao
{
namespace seq
namespace sequence
{
#ifdef TAO_SEQ_FOLD_EXPRESSIONS

Expand Down Expand Up @@ -49,7 +49,7 @@ namespace tao
static_assert( sizeof( T ) == 0, "no elements available" );
};

} // namespace seq
} // namespace sequence

} // namespace tao

Expand Down
Loading

0 comments on commit 98879ea

Please sign in to comment.