mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-16 15:14:13 +00:00
testspr テスト追加
This commit is contained in:
parent
240c2bee1d
commit
7479f20c46
72 changed files with 6810 additions and 0 deletions
31
testspr/print.hpp
Normal file
31
testspr/print.hpp
Normal file
|
@ -0,0 +1,31 @@
|
|||
#ifndef TESTSPR_PRINT_HPP
|
||||
#define TESTSPR_PRINT_HPP
|
||||
|
||||
#include <algorithm>
|
||||
#include <iterator>
|
||||
#include <iostream>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
|
||||
namespace testspr {
|
||||
//
|
||||
// print
|
||||
//
|
||||
template<typename Iterator>
|
||||
void print(Iterator first, Iterator last) {
|
||||
std::for_each(first, last, [](typename std::iterator_traits<Iterator>::value_type const& e){ std::cout << e << ' '; });
|
||||
std::cout << std::endl;
|
||||
}
|
||||
template<typename Range>
|
||||
void print(Range const& range) {
|
||||
print(sprout::begin(range), sprout::end(range));
|
||||
}
|
||||
|
||||
//
|
||||
// print_hl
|
||||
//
|
||||
void print_hl() {
|
||||
std::cout << "--------------------------------------------------------------------------------" << std::endl;
|
||||
}
|
||||
} // namespace testspr
|
||||
|
||||
#endif // #ifndef TESTSPR_PRINT_HPP
|
Loading…
Add table
Add a link
Reference in a new issue