summaryrefslogtreecommitdiff
path: root/src/optional.hh
AgeCommit message (Collapse)Author
2023-10-25Remove redundant comparison operatorsMaxime Coste
Since C++20 (a != b) get automatically rewritten as !(a == b) if the != operator does not exist.
2023-03-15Remove && from the template parameter given to declvalSidharth Kshatriya
It seems redundant as declval already returns a rvalue reference
2021-07-09Avoid copying token content strings in expand_tokenMaxime Coste
We can move that data instead of copying
2020-05-10Support piping data to client stdinMaxime Coste
Pass the client stdin fd to the server and open a fifo buffer from it. Fixes #3394
2019-11-09Add static or const where usefulJason Felice
2019-04-01Add Optional::map and Optional::cast methodsMaxime Coste
Cool kids call that monadic interface if I understood correctly.
2019-01-03Add Optional::value_or_compute for lazy computation of default valueMaxime Coste
2017-09-01Code style tweak in optional.hhMaxime Coste
2017-06-16Hide info/menu when they are anchored to an invisible buffer coordMaxime Coste
Fixes #1444
2017-01-08Apply clang-tidy modernize to the codebaseMaxime Coste
2016-09-04Rework client quitting and handling of remote errorsMaxime Coste
Client quitting no longer immediately unwinds, client is just pushed for deletion until we get back to the main loop, similarly to what happens for buffer and window deletion.
2016-07-04Refactor Optional::operator==Maxime Coste
2016-06-22Add an Optional::emplace methodMaxime Coste
2015-07-10Use a named struct Empty in optionalMaxime Coste
2015-06-25Avoid unneeded default constructor call in OptionalMaxime Coste
2015-05-01Add str_to_int_ifp that returns an Optional<int> instead of throwingMaxime Coste
2015-04-15Optional: put the bool m_valid after the content to improve packingMaxime Coste
2015-03-14Change ParameterParser switch interface, use an Optional<StringView>Maxime Coste
Merge has_option and option_value into a single method get_switch.
2014-12-25Minor code tweak in optional.hhMaxime Coste
2014-12-23Remove trailing blank linesMaxime Coste
2014-10-28Add noexcept spec to move constructor and move assignMaxime Coste
2014-08-19Add support for operator== to OptionalMaxime Coste
2014-06-27Replace boost::optional with our own implementationMaxime Coste