Skip to content

Instantly share code, notes, and snippets.

View nadult's full-sized avatar
:octocat:

Krzysztof Jakubowski nadult

:octocat:
View GitHub Profile
// Prosta klasa parsera
// Jest oznaczona EXCEPT, to znaczy, że każda funkcja z tej klasy może rzucić wyjątek
class EXCEPT TextParser {
TextParser &operator>>(double &);
TextParser &operator>>(bool &);
...
};
struct Params {
string name;
// Prosta klasa parsera
// Jest oznaczona EXCEPT, to znaczy, że każda funkcja z tej klasy może rzucić wyjątek
class EXCEPT TextParser {
TextParser &operator>>(double &);
TextParser &operator>>(bool &);
...
};
struct Params {
string name;
@nadult
nadult / !vector.h
Last active December 25, 2024 17:56
fwk::Vector: improves compilation speed of whole project by ~20%, decreases binary size by 50% (compared with std::vector)
// Copyright (C) Krzysztof Jakubowski <[email protected]>
// This file is part of libfwk. See license.txt for details.
#pragma once
#include "fwk/base_vector.h"
#include "fwk/span.h"
#include "fwk/sys_base.h"
namespace fwk {