tee
in tee-community
it's not teeworlds, it's name of game characters (edited)std::vector<T>
by doing smth like for(auto &t : v)
will it go from begin() to end() or the other way around? (edited)#include <iostream>
#include <vector>
int main() {
std::vector<int> v = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
for (auto &t : v) {
std::cout << t;
}
std::cout << '\n';
}
output: 0123456789
m_vPriority.emplace(m_vPriority.begin(), z);
should emplace z to the start of the vector right?m_vPriority.emplace(m_vPriority.begin(), z);
should emplace z to the start of the vector right? m_vPriority.insert(m_vPriority.begin(), z);
for(int &i : v)
and then returned the element i
instead of what place it wasUi()->Screen()
to get the size of the screen and then offset the Y position of the rect so the bottom side of the rect aligns with the bottom of the screen, if I understand the question correctlyUi()->Screen()
to get the size of the screen and then offset the Y position of the rect so the bottom side of the rect aligns with the bottom of the screen, if I understand the question correctly float rectY = UI()->Screen()->h;
Graphics()->DrawRect(0.0f, rectY, 250.0f, 12.5f, ColorRGBA(0.0f, 0.0f, 0.0f, 0.7f), IGraphics::CORNER_B, 3.75f);
float rectY = UI()->Screen()->h;
Graphics()->DrawRect(0.0f, rectY, 250.0f, 12.5f, ColorRGBA(0.0f, 0.0f, 0.0f, 0.7f), IGraphics::CORNER_B, 3.75f);
ScreenRect.HSplitBottom(12.5f, nullptr, &Row)
ScreenRect.HSplitBottom(12.5f, nullptr, &Row)
#include <algorithm>
in jobs.cpp
which was previously supplied from some other header I assumem_vPriority.emplace(m_vPriority.begin(), z);
should emplace z to the start of the vector right? for(auto i : vec | std::ranges::views::reverse)
for(auto i : vec | std::ranges::views::reverse)
for(auto it : v | std::ranges::views::reverse) ;
for(auto it = v.rbegin(); it != vec.rend(); it++) ;
(edited)std::/ranges::/views::
(edited)std::ranges::reverse_view
for(auto it : vec.rbegin()) ;