util.hpp
src/ftxui/component/dropdown.cpp
src/ftxui/component/input.cpp
src/ftxui/component/menu.cpp
src/ftxui/component/radiobox.cpp
src/ftxui/component/screen_interactive.cpp
src/ftxui/component/dropdown.cpp
src/ftxui/component/input.cpp
src/ftxui/component/menu.cpp
src/ftxui/component/radiobox.cpp
src/ftxui/component/screen_interactive.cpp
src/ftxui/screen/util.hpp
ftxui
ftxui::util

    //Copyright2022ArthurSonzogni.Allrightsreserved.
    //UseofthissourcecodeisgovernedbytheMITlicensethatcanbefoundin
    //theLICENSEfile.
    #ifndefFTXUI_SCREEN_UTIL_HPP
    #defineFTXUI_SCREEN_UTIL_HPP

    namespaceftxui::util{

    //Similartostd::clamp,butallowhitobelowerthanlo.
    template<classT>
    constexprconstT&clamp(constT&v,constT&lo,constT&hi){
    returnv<lo?lo:hi<v?hi:v;
    }

    }//namespaceftxui::util

    #endif/*endofincludeguard:FTXUI_SCREEN_UTIL_HPP*/