Replies: 3 comments 1 reply
-
It's a function being passed to the std::upper_bound function. I don't know C++ but it's pretty easy to see |
Beta Was this translation helpful? Give feedback.
0 replies
-
It's simpler than you think - the reason why it looks weird is because there are a whole bunch of stuff going on. It still follows the basics of C, you just need to follow it in steps until you see what it does. |
Beta Was this translation helpful? Give feedback.
1 reply
-
It's a sorted insert https://en.cppreference.com/w/cpp/container/vector/emplace |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Line 93 of uWebSockets-master/src/HttpRouter.h's return value has a block of code attached. I'm not familiar with this C++ construct. Similarly, HttpRouter.cpp has numerous r.add() calls where a block of code is included within the function call.
Can someone please refer me to C++ documentation that explains the syntax and utility of such statements?
Beta Was this translation helpful? Give feedback.
All reactions