Skip to content
View cppshizoidS's full-sized avatar
🎯
Focusing
🎯
Focusing
  • Novosibirsk
  • 06:30 (UTC +07:00)
Block or Report

Block or report cppshizoidS

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
cppshizoidS/README.md

Typing SVG

GitHub statistic📈:

Top Langs

cppshizoidS's GitHub stats

Laguages:

C C++ C#

Skills:

Advanced:

STL Qt SFML OpenGL GLSL GLM GLFW GLEW SDL ImGUI

Intermeduate:

.Net Drogon Boost PocoLibs FTXUI Docker MySQL Postgres SQLite

Elementary:

GTK

Learning:

Rust Vulkan

Tools:

Linux Tooling

CLion Rider Visual Studio Code  QT Creator CMake Ninja Conan Git Fedora

Contact Me☎️:

Gmail Telegram


Typing SVG

Phanatagama

Hello world:

#include <algorithm>
#include <array>
#include <iostream>

template <typename... Args> class hello_world_printer {
private:
  template <typename _Sequence_Argument>
  constexpr auto push_one(_Sequence_Argument &&arg) -> decltype(auto) {
    if constexpr (!std::is_integral_v<std::decay_t<_Sequence_Argument>>) {
      return int(arg);
    } else {
      return char(arg);
    }
  }
  std::array<char, sizeof...(Args)> arguments;

public:
  constexpr hello_world_printer(Args... args)
      : arguments({push_one(args)...}) {}
  constexpr auto get() const noexcept { return arguments; }
  template <typename _Ch, typename _Tr, typename _Tuple, std::size_t... _Is>
  static constexpr void print_impl(std::basic_ostream<_Ch, _Tr> &ostream,
                                   const _Tuple &t,
                                   std::index_sequence<_Is...>) {
    ((ostream << (_Is == 0 ? "" : ", ") << std::get<_Is>(t.get())), ...);
  }
};
template <typename _Ch, typename _Tr, typename... _Args>
constexpr std::ostream &
operator<<(std::basic_ostream<_Ch, _Tr> &ostream,
           const hello_world_printer<_Args...> &printer) {
  ostream << '(';
  hello_world_printer<_Args...>::print_impl(
      ostream, printer, std::index_sequence_for<_Args...>());
  return ostream << ')';
}
int main() {
  std::cout << hello_world_printer('H', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r','l', 'd')
            << std::endl;
  return EXIT_SUCCESS;
}

Pinned

  1. ShizEngine ShizEngine Public

    C++

  2. GameStore GameStore Public

    Backend of GameStore

    C#

  3. MineGL MineGL Public

    MineCraftGlone

    C++

  4. VulkanRT VulkanRT Public

    Vulkan API RayTracing

    C++

  5. CppBackend CppBackend Public

    Attempt to writing a REST API in C++ using DrogonFramework

    C++ 1 2

  6. VulkanRust VulkanRust Public

    Rust