GithubHelp home page GithubHelp logo

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;
}

Cppshizoid's Projects

cppbackend icon cppbackend

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

dsaa icon dsaa

Data Structures and Algorithms

figures icon figures

Program for drawing geometrical figurs(old qt5 project)

gin-gorm icon gin-gorm

GOlang project uses Gin framework, GORM and postgres

macroses icon macroses

It's my something macroses for fun not for production use.

metaprogrammingcpp icon metaprogrammingcpp

Repository with practise for "Template Metaprogramming with C++" by Marius Bachila. And some my useful tools using metaprogramming

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.