This app was mentioned in 2 comments, with an average of 9.00 upvotes
You can upgrade the GCC version used by C4droid with this plugin:
https://play.google.com/store/apps/details?id=com.n0n3m4.gcc4droid&hl=en
Then you just have to make sure you're passing the command line option to the compiler to enable C++14 features. ( -std=c++14 )
OK, if there is no built in package manager and no repository I wouldn't denote it a general system. I would merely denote it a an embedded system, possible to extend.
I found some info about brew here.
http://forum.xda-developers.com/showthread.php?t=1446541
In my view android was never created to be a general system, it was intended to be a narrow system where you could install some apps, as I have understood it. Even though it is possible to make it a general system it seems to be a tedious task to do so, so why?
Even to install a C compiler seems to be a hassle. Then it's not a generic system at all. A system without a builtin C compiler is an embedded system dedicated to a narrow field of operation.
https://play.google.com/store/apps/details?id=com.n0n3m4.gcc4droid&hl=en