Code of the longest substring without repeating characters in c++

Can I get the code in C++ with exactly the algorithm explained in the Algo video of the question- Longest Substring without any repeating characters?

@aazz
Will have to ask for that. Will get back to you asap.