Remove unnecessary function declaration

This commit is contained in:
Chris Thrasher 2024-11-27 01:11:03 -05:00
parent 485eb157f2
commit 0a726aa9b9
No known key found for this signature in database
GPG Key ID: 56FB686C9DFC8E2C
2 changed files with 4 additions and 7 deletions

View File

@ -38,12 +38,6 @@
namespace sf namespace sf
{ {
namespace priv
{
template <class InputIt, class OutputIt>
OutputIt copy(InputIt first, InputIt last, OutputIt dFirst);
}
template <unsigned int N> template <unsigned int N>
class Utf; class Utf;

View File

@ -41,15 +41,18 @@
namespace sf namespace sf
{ {
namespace priv
{
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
template <typename InputIt, typename OutputIt> template <typename InputIt, typename OutputIt>
OutputIt priv::copy(InputIt first, InputIt last, OutputIt dFirst) OutputIt copy(InputIt first, InputIt last, OutputIt dFirst)
{ {
while (first != last) while (first != last)
*dFirst++ = static_cast<typename OutputIt::container_type::value_type>(*first++); *dFirst++ = static_cast<typename OutputIt::container_type::value_type>(*first++);
return dFirst; return dFirst;
} }
} // namespace priv
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////