dsalgo/
io_locked_stdin_reader.rs1use crate::io_buffered_read_wrapper::*;
2
3pub fn locked_stdin_reader() -> ReadWrapper<std::io::StdinLock<'static>> {
4 let stdin = Box::leak(Box::new(std::io::stdin()));
5
6 ReadWrapper::new(stdin.lock())
7}
8
9#[cfg(test)]
10
11mod tests {
12
13 #[test]
14
15 fn test() {}
16}