Skip to content

Commit 3b27f33

Browse files
committed
Add fast_io::iomnp namespace for allowing user to do things like
using namespace ::fast_io::iomnp; then it should be equivalent to using namespace ::fast_io::io; using namespace ::fast_io::mnp;
1 parent 6a210f8 commit 3b27f33

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include <fast_io.h>
2+
3+
int main()
4+
{
5+
using namespace ::fast_io::iomnp;
6+
std::size_t a, b;
7+
scan(base_get<36>(a), base_get<36>(b));
8+
println(base<36>(a + b));
9+
}

include/fast_io_legacy_impl/io.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,4 +354,10 @@ static_assert(device_error, "freestanding environment must provide IO device");
354354

355355
} // namespace io
356356

357+
namespace iomnp
358+
{
359+
using namespace ::fast_io::io;
360+
using namespace ::fast_io::mnp;
361+
} // namespace iomnp
362+
357363
} // namespace fast_io

0 commit comments

Comments
 (0)